Skip to content

Commit

Permalink
Added systemd service files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Hnidek committed Mar 2, 2015
1 parent 815aeed commit c33f4fd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions forking-daemon.service
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
13 changes: 13 additions & 0 deletions simple-daemon.service
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

0 comments on commit c33f4fd

Please sign in to comment.