Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Have a look at the <code>killall</code> command. The <code>start</code> within a script often just looks to see if an instance of the program already exists, and if it doesn't it starts it. The stop often just sends a signal to the service using the <code>killall</code> command.</p> <p>Similar things that you may be interested in are editing or replacing the configuration files for a daemon and then sending the daemon the SIGHUP signal telling it that it should reread its configuration.</p> <p>Another related topic is sending a daemon a particular message by calling the daemon's executable with some particular options. This is done this way because the interface that the messages are sent in can change and if it is the same program doing the sending and receiving it is hard to get out of sync. The method of sending messages can vary as well (Unix Domain Sockets, named pipe, editing a configuration file and sending SIGHUP, just about anything you could imagine). One other benefit of this is that the same input verification that the program uses when it runs as a daemon can be used before it sends the message, so if there is an error that the daemon would choke on the instance of the program that you are calling from the command line could go ahead and tell you on the terminal and refuse to pass this on to the daemon.</p> <p>To find the PID of a running service either use a pid file (daemon creates a file in a certain location with its PID in it -- just like old lock files, or do it the same way that <code>killall</code> does -- look through <code>/proc</code> (which is platform specific).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload