LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-20-2021, 09:30 AM   #1
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Blog Entries: 1

Rep: Reputation: 49
start-stop-daemon


Dear LQ,

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.
 
Old 05-21-2021, 02:34 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
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.
 
Old 05-21-2021, 05:51 AM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
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
 
Old 05-21-2021, 12:38 PM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
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).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script that call another stop start script and use paarmeter stop,start ,status rcroyal88 Programming 5 07-21-2018 01:40 AM
Bash script to verify the daemon is working if not, start the daemon kishoreru Linux - Newbie 7 09-23-2009 04:29 AM
Informix start/stop along with redhat start/stop gxgtudor Red Hat 2 03-06-2009 02:13 AM
AWK- processing data inside start/stop pairs but ignoring start/stop lines cliffoij Programming 2 10-15-2008 06:17 AM
Enable daemon to run with service daemon start,etc baddah Programming 6 12-02-2007 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration