Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I thought this command was universally aviable on all distros, but when I checked the manpage, I saw it is coming from the dpkg suite, which is debian specific. Does your distribution also have this command ? it is used in init.d scripts for your typical service stop|start|restart.
qmail and apache on my server have scripts that process start/stop/restart commands. systemd (systemctl) also supports those arguments. It’s been awhile since I used init.d, but I think that functionality is also supported there.
It’s not a daemon…and it’s not, as I understand it, related to the distro. It’s more a function of of the process.
CRUX make extensive use of 'start-stop-daemon' in their stock rc.d/* init-scripts.
Slackware doesn't. but has recently added a similar tool called 'daemon', though it's not extensively used yet.
systemd based systems likely have little use for it as they have their service unit files.
Personally, I'm not convinced start-stop-daemon provides much value. While it does have a lot of features, it's mostly used as a fancy if ! pgrep $processname ;then $processname ; fi
Newer Fedora and RHEL releases just use systemctl, but still provide the shell function daemon() in file /etc/rc.d/init.d/functions that was previously used by init scripts in similarly to start-stop-daemon in Debian. Unlike Debian, its use wasn't mandated though. On CentOS 6, while most scripts source /etc/init.d/functions, only some of them make use of daemon (e.g. ntpd does, but sshd doesn't).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.