Linux daemon start and stop tool Start-stop-daemon

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.