Page 1 of 1

Linux Service

Posted: Tue Jan 10, 2012 9:32 pm
by Foz
I know that PBOSL has the NT Service utilities, but Linux seems to be left out.

Has anyone created a Linux Service with the start, stop and restart commands?

Or can anyone point me in the right direction where I should be looking?

Re: Linux Service

Posted: Wed Jan 11, 2012 11:48 am
by remi_meier
You mean controlling a PB program through an init-script?
This might help you: http://www.novell.com/coolsolutions/feature/15380.html

Re: Linux Service

Posted: Wed Jan 11, 2012 3:51 pm
by Foz
Hmmm very interesting - this may be what I'm after - I was bashing my head against the C fork() process before I gave up last night!

Thanks!

Re: Linux Service

Posted: Wed Jan 11, 2012 4:36 pm
by auser
I would suggest creating a bash-script and use "start-stop-daemon" there for pushing the binary in the background (so you can even choose easy a user/group that should run it afterwards).

Greetings,
auser