Module: ngircd.git Branch: master Commit: 160f728530806385dbeee398a20fe5eac7318c5a URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=160f7...
Author: Alexander Barton alex@barton.de Date: Sat Aug 18 15:51:28 2012 +0200
contrib/ngircd.service: systemd service file for ngircd
Thanks to Kyle Keen keenerd@gmail.com:
Date: Sat, 18 Aug 2012 08:28:22 -0400 Message-ID: CAAKTTKNNmrB=8XtxcV6w1Q-RQ6J_xTTDGD4MHQFaDy6V3=B19Q@mail.gmail.com From: keenerd keenerd@gmail.com To: ngircd-ml@ngircd.barton.de Subject: [ngIRCd-ML] systemd service
Hello all.
Linked is a service file for ngircd. Please add this to your source tree so other people don't have to learn to write service files ;-)
https://projects.archlinux.org/svntogit/community.git/plain/trunk/ngircd.ser...
-Kyle Keen Arch Linux TU http://kmkeen.com
---
contrib/Makefile.am | 11 +++++++++-- contrib/ngircd.service | 11 +++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 36ba245..73611fd 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -11,8 +11,15 @@
SUBDIRS = Anope Debian MacOSX
-EXTRA_DIST = README ngircd.spec systrace.policy ngindent ngircd-bsd.sh \ - ngIRCd-Logo.gif ngircd-redhat.init platformtest.sh +EXTRA_DIST = README \ + ngindent \ + ngircd-bsd.sh \ + ngIRCd-Logo.gif \ + ngircd-redhat.init \ + ngircd.service + ngircd.spec \ + platformtest.sh \ + systrace.policy
maintainer-clean-local: rm -f Makefile Makefile.in diff --git a/contrib/ngircd.service b/contrib/ngircd.service new file mode 100644 index 0000000..b5bab06 --- /dev/null +++ b/contrib/ngircd.service @@ -0,0 +1,11 @@ +[Unit] +Description=Next Generation IRC Daemon +After=network.target + +[Service] +# don't daemonize to simplify stuff +ExecStart=/usr/sbin/ngircd -n +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target