Page 1 of 1

Raspbian Initscript, restart on death?

Posted: Mon Jun 09, 2014 2:38 am
by ericye16
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?

Re: Raspbian Initscript, restart on death?

Posted: Mon Jun 09, 2014 8:09 pm
by hampi
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.

Re: Raspbian Initscript, restart on death?

Posted: Sat Jun 14, 2014 2:48 am
by FM81
Make an entry in '/etc/inittab'?

MfG, FM_81