mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 17:26:01 +02:00
daemonize: add page (#3228)
This commit is contained in:
parent
764d21abad
commit
6979688bca
1 changed files with 20 additions and 0 deletions
20
pages/linux/daemonize.md
Normal file
20
pages/linux/daemonize.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# daemonize
|
||||
|
||||
> Run a command (that does not daemonize itself) as a Unix daemon.
|
||||
> More information: <http://software.clapper.org/daemonize/>.
|
||||
|
||||
- Run a command as a daemon:
|
||||
|
||||
`daemonize {{command}} {{command_arguments}}`
|
||||
|
||||
- Write the pid to the specified file:
|
||||
|
||||
`daemonize -p {{path/to/pidfile}} {{command}} {{command_arguments}}`
|
||||
|
||||
- Use a lock file to ensure that only one instance runs at a time:
|
||||
|
||||
`daemonize -l {{path/to/lockfile}} {{command}} {{command_arguments}}`
|
||||
|
||||
- Use the specified user account:
|
||||
|
||||
`sudo daemonize -u {{user}} {{command}} {{command_arguments}}`
|
Loading…
Add table
Reference in a new issue