Available in

(8) (8)/de (8)/es (8)/fr (8)/ja (8)/pl (8)/ru (8)/sv

TOC

start-stop-daemon(8)                  dpkg                start-stop-daemon(8)



start-stop-daemon -- -

start-stop-daemon -S|--start [--]

       start-stop-daemon -K|--stop

       start-stop-daemon -H|--help

       start-stop-daemon -V|--version

start-stop-daemon

        .   --exec, --pidfile, --user
        --name, start-stop-daemon
         .

       start-stop-daemon   --start
        .    , start-stop-daemon
                1 ( 0,
        --oknodo).      , ,    ,   --exec, (  --startas).  ,
        --,      .

       start-stop-daemon   --stop
        .    ,  start-stop-daemon
         ,   --signal
         0.     , start-stop-daemon      1 ( 0,
         --oknodo).    --retry, start-stop-daemon  ,  ()  .

       Note:  unless --pidfile is specified, start-stop-daemon behaves similar
       to killall(1).  start-stop-daemon will scan the process  table  looking
       for  any  processes  which  match the process name, uid, and/or gid (if
       specified). Any matching process will prevent --start from starting the
       daemon.  All  matching processes will be sent the KILL signal if --stop
       is specified. For daemons which have long-lived children which need  to
       live through a --stop you must specify a pidfile.




       -x|--exec _
               , ( /proc/pid/exe).

       -p|--pidfile pid-
                  pid-.

       -u|--user _|uid
               ,  , _  uid.

       -g|--group |gid
                   gid   .

       -n|--name _
                  _ ( /proc/pid/stat).

       -s|--signal
                   --stop,  ,
                    (  15).

       -R|--retry _|
                   --stop , start-stop-daemon     .
               ,     ,   ,
                 .    , ,    .

                   _,

              /_/KILL/_,   --
               ,   --signal.

                --       ,
                 (/);   -- --  [-]-,  _,
                , ,    forever,
               ,  .

                       forever,
               start-stop-daemon      2.
               ,  ,     --signal,

       -a|--startas _
                  --start  ,
               _.     ,
               --exec.

       -t|--test
               ,
               ,     .

       -o|--oknodo
                0  1,     ( )  .

       -q|--quiet
                 ;    .

       -c|--chuid -|uid
              Change to this username/uid before starting the process. You can
              also specify a group by appending a :, then the group or gid  in
              the  same way as you would for the `chown' command (user:group).
              When using this option you must realize  that  the  primary  and
              supplemental  groups are set as well, even if the --group option
              is not specified. The --group option is only for groups that the
              user  isn't  normally a member of (like adding per process group
              membership for generic users like nobody).

       -r|--chroot root
                    root
               .

       -d|--chdir
                    .
                   -r|--chroot
                .

       -b|--background
              Typically used with programs that don't  detach  on  their  own.
              This option will force start-stop-daemon to fork before starting
              the  process,  and  force  it  into  the  background.   WARNING:
              start-stop-daemon  cannot  check  the exit status if the process
              fails to execute for any reason. This is a last resort,  and  is
              only  meant  for  programs  that either make no sense forking on
              their own, or where it's not feasible to add the code  for  them
              to do this themself.

       -N|--nicelevel int
                    .

       -k|--umask mask
              This sets the umask of the process before starting it.

       -m|--make-pidfile
              Used  when  starting  a program that does not create its own pid
              file. This option will make start-stop-daemon  create  the  file
              referenced  with --pidfile and place the pid into it just before
              executing the process. Note, the file will not be  removed  when
              stopping  the  program.   NOTE: This feature may not work in all
              cases. Most notably when the program being executed  forks  from
              its main process. Because of this it is usually only useful when
              combined with the --background option.

       -v|--verbose
                 .

       -H|--help
                  .

       -V|--version
                    .


Marek Michalkiewicz <marekm [AT] i17linuxb.pl>

        ,  Ian Jackson <ian [AT] chiark.uk>.

          Klee Dienes <klee [AT] mit.edu>,
        Ian Jackson.

     <victor_v [AT] permonline.ru>.
         : Alexey Mahotkin <alexm [AT] hsys.ru>.



 Debian                           2006-02-28              start-stop-daemon(8)

COMMENTS

Add your comment here. Whitespace and linebreaks are preserved. URLs are linked automatically.
CAPTCHA

No HTML allowed. URLs will be linked with nofollow attribute. Whitespace is preserved.