From: Alexander Barton Date: Sat, 18 Aug 2012 13:51:28 +0000 (+0200) Subject: contrib/ngircd.service: systemd service file for ngircd X-Git-Tag: rel-20-rc1~112 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=160f728530806385dbeee398a20fe5eac7318c5a;hp=922540306e968b3c64150e771d0773273535b661 contrib/ngircd.service: systemd service file for ngircd Thanks to Kyle Keen : Date: Sat, 18 Aug 2012 08:28:22 -0400 Message-ID: From: keenerd 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.service?h=packages/ngircd -Kyle Keen Arch Linux TU http://kmkeen.com --- diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 36ba2458..73611fd4 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 00000000..b5bab060 --- /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