The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
56 views

Tell if a process is under systemd, init.d or Upstart control

Is it possible to reliable tell for a given Linux process if it was launched or is still supervised by an init.d script, Upstart or systemd ?
0
votes
0answers
40 views

Why would “git clone” fail in an Ubuntu startup script?

I have a startup script that clones a git repository. If I execute it manually /etc/init.d/bootstrap.sh it successfully clones. If I use the Ubuntu initialization process sudo ...
0
votes
0answers
37 views

Automatically stop init.d script dependencies?

How to automatically stop the init.d/* script's dependencies before the script itself stops? The sequence in which the scripts a started at boot time is calculated basing on the Required-Start: and ...
2
votes
1answer
709 views

Upstart: chdir stanza VS cd command

In Upstart script I can use chdir stanza to set the working directory. Also I can just execute a normal cd command inside my script section. What is the difference between this two approaches? When ...
-1
votes
2answers
488 views

How can I create a /etc/init.d/ script easily?

I usually just copy some existing script like /etc/init.d/ssh, remove extra things and edit remaining things. This is not very convenient. Is there a simple tool to create good Debian initscripts? ...
2
votes
1answer
147 views

s3cmd fails to run from an init-script

I created an init-script that should push some log files using s3cmd to an Amazon S3 bucket when the system is going down. s3cmd is installed and s3cmd --configure was run as user root and the ...
0
votes
0answers
25 views

LSB Init script not executed [duplicate]

I've created an LSB compatible init script which I intend to use to push some log files to an Amazon S3 bucket when the system is going down but it doesn't get executed. Here is the script contents ...
2
votes
3answers
832 views

Why would a shutdown script NOT run?

I have installed a shutdown script on an Ubuntu system which doesn't get executed. It is an Amazon EC2 instance. I'm not sure it has to do with this fact just wanted to point it out. The script ...
3
votes
1answer
3k views

Bash script to wait for Virtualbox VM shutdown?

Virtualbox has the ability to issue a command to a running vm: vboxmanage controlvm NameOfRunningVM acpipowerbutton However this command returns immediately which results in non-graceful shutdown ...