Questions tagged [init]
The init tag has no summary.
11 questions
6
votes
1
answer
11k
views
systemd to wait for command to complete before restart/shutdown or killing other processes
When I'm initiating "reboot" or "poweroff", systemd is killing all the processes, but I need it to wait for one particular application to finish before stopping other services.
Actually, I want ...
101
votes
8
answers
325k
views
Best way to disable swap in Linux
I am running a custom compiled 3.18.9 kernel and I am wondering about the best way to disable swap on the system. I also use init if it makes a difference.
Is it enough to comment or remove the swap ...
10
votes
1
answer
5k
views
Using Upstart to Manage AutoSSH Reverse Tunnel
I'm using upstart to manage a reverse SSH tunnel via autossh. When I do a "sudo start tunnel" the connection comes up just fine; however the command is not being automatically run when the networking ...
16
votes
5
answers
28k
views
Standard or best way to keep alive process started by init.d
I'm looking for a standard way or best practice to keep a daemon started by an init.d shell script alive.
Or even better, is there a way to keep it alive directly from /etc/init.d?
Specifically, I ...
11
votes
5
answers
36k
views
runit - unable to open supervise/ok: file does not exist
I'm trying to figure out why runit will not boot or give me the status for the managed applications. Running on Ubuntu 12.04.
I created /service, /etc/sv/myapp (with a run script, a config file, a ...
6
votes
2
answers
3k
views
How To Shutdown Ubuntu Automatically X Minutes After Starting Up?
How would one automatically shutdown an ubuntu OS 30 minutes after it was turned on? Or 15 minutes after it was turned on? Etc?
I tried creating an init.d script like so:
shutdown -h +5
But my box ...
5
votes
2
answers
23k
views
init script that logs output of the script
How can this be done? I know it's pretty simple and includes appending something like & or &> to the actual command that starts the init script.
But, what is the best approach and how can ...
3
votes
3
answers
3k
views
CentOS: Init scripts failing to start for some unknown reason
I'm running CentOS 6.2 - I've just migrated some applications over to a failover server, and copied their init scripts into /etc/init.d.
I've made them executable, added them to chkconfig, with ...
2
votes
2
answers
19k
views
Server won't boot, kernel panic - not syncing
After a reboot of a CentOS 6.2 server we are getting a kernel panic with the following error:
Kernel panic - not syncing: Attempted to kill init!
Panic occurred, switching back to text console
When ...
2
votes
1
answer
1k
views
Rebuilding /etc/rc?.d/ links
A regular filesystem check on a Debian Lenny system triggered an fsck, and that nuked a handful of links in the /etc/rc?.d hierarchy (unfortunately I didn't keep a list).
The system seems to boot and ...
0
votes
1
answer
3k
views
How to mount a root aufs in Red Hat / Fedora Core?
I'm trying to set up a virtual machine running Red Hat EL (actually Scientific Linux, but same difference) where the root file system is protected and not writable. I'd like to accomplish this with a ...