File: sample.init.systemd

package info (click to toggle)
inn2 2.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,720 kB
  • ctags: 8,983
  • sloc: ansic: 92,499; sh: 13,509; perl: 12,921; makefile: 2,985; yacc: 842; python: 342; lex: 255
file content (20 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $Id: sample.init.systemd 9599 2014-02-08 13:56:54Z iulius $
#
# This is a simple, bare-bones example of a systemd-style init script for INN.
#
[Unit]
Description=InterNetNews Daemon
After=syslog.target network.target
ConditionPathExists=/etc/news/inn.conf

[Service]
User=news
PermissionsStartOnly=true
PIDFile=/run/news/innd.pid
Type=forking
ExecStart=/usr/libexec/news/rc.news
ExecStop=/bin/su -m news -s /bin/sh -c '/usr/libexec/news/rc.news stop'
KillMode=control-group

[Install]
WantedBy=multi-user.target