I'm trying to write a script to launch a daemon on both centos and debian.
This is the current pseudo script:
if [ =f "/etc/init.d/functions" ]
then
. /etc/unit.d/functions
alias STARTSTOPDAEMON=daemon
else
alias STARTSTOPDAEMON=start-stop-daemon
fi
But then I have two different syntax for the alias...
I have found this on pastebin, I was wondering if it could work cross distro or not.
Any advice?