Questions tagged [runlevel]

A run level is a state of the init process defining which system services are operating.

A run level is a state of the init process defining which system services are operating.

http://www.tldp.org/LDP/sag/html/run-levels-intro.html

52 questions
1
vote
1 answer

Execute a script having curl call before shutdown in SysVinit

So by default I am in runlevel 3. During shutdown I switch into runlevel 0. But I am not getting any success if am putting my script (having a curl call) in /etc/rc0.d/, as in runlevel 0 network is already stopped and therefore it is not able to do…
Harsh Sharma
  • 10,942
  • 2
  • 18
  • 29
1
vote
1 answer

Insert MySQL row on server start

I have a debian based private server and am wondering, what's the best way to insert a row to database when the server boots. I am trying to show it in the notifications on my PHP-based monitoring site. I currently am thinking of a simple…
DoYouEvenHTML
  • 23
  • 1
  • 6
1
vote
2 answers

How to change the priority of service in run levels on ubuntu?

I have tried to change the priority of samba on run level 2 by renaming the S16samaba to S21samba. mv S16samaba S21samaba But when I reboot the server it starts before other services which are low priority like S12ntp. I have also tried using…
Sunil Tako
  • 377
  • 2
  • 13
1
vote
1 answer

CentOS Service startup with custom parameters (chkconfig)

CentOS uses the chkconfig command to add services to to the startup routine, but how do I add a service and pass parameters to that service? To be more precise, I'm setting up the Sphinx search engine on a CentoOS 6.5 server and the documentation…
Ric
  • 458
  • 1
  • 7
  • 23
1
vote
1 answer

System is not able to go in runlevel 0

I have a basic question if we issue a power-off to a device does it goes in runlevel 0 ? As far as I understand when a power-off is issued runlevel changes from 3 to 0 accordingly the /etc/init.d/halt script gets called. This halt file is executed…
Vinay Shukla
  • 1,818
  • 13
  • 41
1
vote
2 answers

Which service monitors the events like (reset,halt,power off) and in turn executes runlevel 6,0 or 3

When I issue power off to a device, ideally the kernel should get this event and then runlevel 0 should get executed. As of now the hardware turns off but the runlevel 0 is not executed. When i manually executed the script /etc/rc.d/rc and…
Vinay Shukla
  • 1,818
  • 13
  • 41
1
vote
2 answers

Python execution

Is it possible for a python script to execute at a low run level? Edit: To clarify, is it possible for a python script to run in the background, kind of like a daemon.
pub
  • 21
  • 1
1
vote
1 answer

Jboss 7 OSGI runlevel

is there a proper way to define the start level of osgi bundles on JBoss 7.1 application server, like on equinox configuration? thanks!!!
moohkooh
  • 917
  • 1
  • 10
  • 25
0
votes
1 answer

Determine system halt in c++

Alright so I'm working on a program written in c++ that is running as a daemon. It is primarily aiming Linux users, but I wish to include Windows (running as service) and Mac users as well. I want the daemon to log whenever it is manually shut down.…
roggan87
  • 462
  • 3
  • 10
0
votes
1 answer

Ubuntu, Python script, how to run after boot and using update-rc.d

I have a python script in /etc/init.d/test.py. I want to run this script and network access is required since I clone from github. So...I am confused about using this command: sudo update-rc.d test.py start NN rl I assume I want run level 3? …
user959129
0
votes
1 answer

Programmatically, how can I tell on LINUX that the system is rebooting?

There is a lot about the "procedure" LINUX undertakes when a reboot or 'imminent shutdown' is underway. I wish to understand, programmatically, and react to, that a REBOOT IS IMMINIENT. My application gets sent TERM and HUP signals which is all good…
0
votes
0 answers

httpd disabled at runlevels , needs to be restarted for synchronizer updates on xen

I have Redhat 6.10 Synchronizer Server and xen client device setup. I am able to download updates via a manager software which run on xen client device. But each time I want to download the update.tar I restart the apache and then client xen…
0
votes
0 answers

Unable to scroll in linux runlevel 3

I am running ubuntu on runlevel 3, which is an Command line interface, how does scrol work in this window? Unable to scroll I tried several shortcuts shift+ down arow, ctrl+shift+down arrow, but didn't work
0
votes
0 answers

Customize a new runlevel for single user

I try to open FreeDOS by QEMU on Debian and I don't want the user can switch to Debian. In graphical mode, I can't find a proper method to do this. There are some display problem, like console size cannot fit the fullscreen. Then, I found that in…
Azreal
  • 99
  • 8
0
votes
1 answer

Linux - boot in runlevel3 and add X11 components

I want to build a minimum Linux for embedded devices that comes with Firefox only. Questions: Is it ever possible to add X11 components to runlevel3 and upgrade it to runlevel5? Is it possible to setup a Linux in runlevel3 with minimum display…
R.S
  • 45
  • 9