1. function function start and stop system Daemon 2. Position/sbin/start-stop-daemon 3. Main parameters Commands:-s|--start--<argument> ... Open a system daemon and pass parameters to it-k|--stop stop a program-t|--status get the program status-H|--HELP display Help information-v|--version print version information Matching options (at least E is required):-p|--pidfile <pid-file> pid file to check-x|--exec <executable> program to Start/check if it Isrunning-n|--name <process-name> process name to Check-u|--user <username|uid> process owner to check Optio NS:-g|--group <group|gid> Run program by specified user group permissions-c|--chuid <name|uid[:group|gid]> Run program-s|--signal by specified user, user group permissions < Signal> signal to send [default term]-a|--startas <pathname> program to start (default is<executable>)-r| --chroot <directory> chroot to <directory>before starting-d|--chdir <directory> change to < Directory> (default is/)-n|--nicelevel <incr> Add incr to the process ' nicelevel-p|--procsched <policy[:p Rio ]> use <policy> with <prio> for the kernel pRocess Scheduler (default prio is 0)-i|--iosched <class[:p rio]> use <class> with<prio> to set the IO SC Heduler (default Prio is 4)-k|--umask <mask> pre-run settings <mask>-b|--background background run-m|--make-pidfile when the command itself does not create P Idfile, the time to create-r|--retry <schedule> wait timeout by Start-stop-daemon, check if the process is stopped, if no kill signal is sent;-t|--test test mode-o|-- Oknodo Exit Status 0 (not 1) if nothing done-q|--quiet do not output warning-v|--verbose display run procedure Information 5. Apply 1, open a daemon process Start-stop-daemon --start--background--exec/root/proxy.py 2, close a daemon process Start-stop-daemon--stop--name proxy.py
Linux daemon start and stop tool Start-stop-daemon