Linked Questions

107
votes
2answers
141k views

How does systemd use /etc/init.d scripts?

I just switched to debian jessie, and most things run okay, including my graphical display manager wdm. The thing is, I just don't understand how this works. Obviously my /etc/init.d/wdm script is ...
72
votes
4answers
105k views

Purpose and typical usage of /etc/rc.local

The header looks like this: #!/bin/sh -e # # rc.local - executed at the end of each multiuser runlevel # # Make sure that the script will "exit 0" on success or any other # value on error. What is ...
4
votes
2answers
19k views

Make daemon start up with Linux

I'm writing a simple daemon application using C/C++ and I want it to start when Linux starts up. I have tried to modify /etc/init.d/skeleton to add a script into the init.d directory as follows ...
5
votes
2answers
12k views

start-stop-daemon won't start my Python script as service

I am trying to run Google AppEngine on my Debian machine, I created a file init.d/gae: . /lib/lsb/init-functions # # Initialize variables # name=gae user=$name pid=/var/run/$name.pid prog="python /...
6
votes
3answers
2k views

Templates for startup script?

I need to write a couple of Linux (Debian) startup scripts. Are there any accurate templates available?
5
votes
2answers
4k views

How can I make Debian run m python script at startup?

I have this script in my home folder (pi): server.py. How could I make Debian run this script at startup so I don't need to log in and run it manually?
3
votes
3answers
5k views

Start notification-daemon as a service

I am running Debian and wish to make use of notify-send. But notify-send doesn't give me any notification unless I have one of the following running: # either: /usr/lib/notification-daemon/...
2
votes
1answer
8k views

Proper location to install services

I originally posted this question over on AskUbuntu but it didn't get any traction so I'll ask here. In ubuntu or linux in general is there a "correct" location to install services that you download ...
1
vote
1answer
5k views

adding a program on start-up by using LSBInitScripts

I use Debian Lenny (I know lenny is old and other bla bla) and would like to place a program on the start-up. I use update-rc.d by adding an executable file on /etc/init.d. By referring to http://wiki....
0
votes
1answer
2k views

Scripts in rc.local (start at boot), doesnot start

In my Debian /etc/rc.local, I've put 2 scripts (one for Wifi AP, the other for VPN client-connection): sh /bootscripts/vpn.sh & sh /bootscripts/wifiap.sh & #test: date >> /home/user24/...
0
votes
1answer
1k views

Debian start-stop-daemon equivalent in CentOS

I have a bash script that is written in a debian-based distribution (System-V) and I want to run it under CentOS 7. There is a part of the script that runs a command as a daemon like this: start-stop-...
0
votes
1answer
743 views

How to recover the file “/etc/init.d/skeleton”?

I accidentally remove my file /etc/init.d/skeleton. Where can I get that file again? My distribution is Raspbian.
1
vote
1answer
460 views

Run skript on shutdown and restart

Based on some posts here, I try to run a simple script to clean up a folder with temporary content on restart and shutdown. Following the instructions and the READMEs I wrote this script: /etc/init....
3
votes
1answer
264 views

Why does my application die without nohup?

I have a simple system (running on Debian) that works by invoking a script from /etc/init.d/rc.local At the bottom of rc.local I call myScript.sh who sets up some things, and then starts a binary ...
1
vote
0answers
225 views

Processes blocking on shutdown

I'm working on a system running Debian Wheezy with an application that as part of it's normal behavior spawns a few child processes. Under most circumstances when the parent application is killed it ...

15 30 50 per page