]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - make/template/inspircd.service
Add the User and Group options to the systemd service unit template file.
[user/henk/code/inspircd.git] / make / template / inspircd.service
1 %platform linux
2 #
3 # InspIRCd -- Internet Relay Chat Daemon
4 #
5 #   Copyright (C) 2014 Peter Powell <petpow@saberuk.com>
6 #
7 # This file is part of InspIRCd.  InspIRCd is free software: you can
8 # redistribute it and/or modify it under the terms of the GNU General Public
9 # License as published by the Free Software Foundation, version 2.
10 #
11 # This program is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
14 # details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 #
19
20
21 [Unit]
22 After=network.target
23 Description=InspIRCd - Internet Relay Chat Daemon
24 Requires=network.target
25
26 [Service]
27 ExecReload=@SCRIPT_DIR@/inspircd rehash
28 ExecStart=@SCRIPT_DIR@/inspircd start
29 ExecStop=@SCRIPT_DIR@/inspircd stop
30 PIDFile=@DATA_DIR@/inspircd.pid
31 Restart=on-failure
32 Type=forking
33 User=@USER@
34 Group=@GROUP@
35
36 [Install]
37 WantedBy=multi-user.target