Skip to content

Commit

Permalink
clusterd: add clusterd.service
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Oct 5, 2015
1 parent 915aed9 commit 1fb094e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clusterd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ DESTDIR=

all:

install: clusterd
install: clusterd clusterd.service
install -d ${DESTDIR}${SBINDIR}
install -m 755 clusterd ${DESTDIR}${SBINDIR}/clusterd
install -m 644 clusterd.service ${DESTDIR}/etc/systemd/system/clusterd.service

restart: install
systemctl restart clusterd.service
14 changes: 14 additions & 0 deletions clusterd/clusterd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=ClusterDonald
Requires=network.target
After=network.target

[Service]
ExecStart=/usr/sbin/clusterd --daemon --foreground --kill --syslog
StandardOutput=syslog
Restart=always
RestartSec=10s

[Install]
WantedBy=multi-user.target

0 comments on commit 1fb094e

Please sign in to comment.