forked from jirihnidek/daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jiri Hnidek
committed
Mar 2, 2015
1 parent
815aeed
commit c33f4fd
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=Example of forking daemon program | ||
|
||
[Service] | ||
Type=forking | ||
PIDFile=/var/run/daemon.pid | ||
ExecStart=/usr/bin/daemon \ | ||
--conf_file /etc/daemon/daemon.conf \ | ||
--log_file /var/log/daemon.log \ | ||
--pid_file /var/run/daemon.pid \ | ||
--daemon | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
|
||
[Install] | ||
WantedBy=multiuser.agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Example of simple daemon program | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/usr/bin/daemon \ | ||
--conf_file /etc/daemon/daemon.conf \ | ||
--log_file /var/log/daemon.log | ||
User=root | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
|
||
[Install] | ||
WantedBy=multiuser.agent |