ericye16
Posts: 1
Joined: Mon Jun 09, 2014 2:33 am

Raspbian Initscript, restart on death?

Mon Jun 09, 2014 2:38 am

I'm trying to get a server-like process (well, two) to run whenever I boot the Pi, and I haven't been able to find any good examples online of Debian SysVInit scripts. I'd need one to start running after the other.

I'm also curious as to whether it's possible for init to automatically restart a program if it dies, like systemd can do. Does anyone know where I can find out more?

hampi
Posts: 223
Joined: Fri May 31, 2013 11:29 am
Contact: Website

Re: Raspbian Initscript, restart on death?

Mon Jun 09, 2014 8:09 pm

Maybe this helps

Code: Select all

/etc/init.d/skeleton
After running

Code: Select all

update-rc.d mydaemon defaults
you get new symbolic links to different run level directories under /etc/rc?.d/ .

If the daemon hangs for any reason the code needs to be rewritten.

FM81
Posts: 518
Joined: Wed Apr 17, 2013 4:33 pm

Re: Raspbian Initscript, restart on death?

Sat Jun 14, 2014 2:48 am

Make an entry in '/etc/inittab'?

MfG, FM_81
A: What does the command 'cat /dev/urandom', can you tell me please?
B: Yeah, that's very simple: It feeds your cat with radioactive material!

Return to “Advanced users”