]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - make/template/inspircd.service
0d75b5cb625baa1045f97ae9ec90b3811445e8b0
[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=Inspire Internet Relay Chat Daemon
24 Requires=network.target
25
26 [Service]
27 ExecReload=@BASE_DIR@/inspircd rehash
28 ExecStart=@BASE_DIR@/inspircd start
29 ExecStop=@BASE_DIR@/inspircd stop
30 PIDFile=@DATA_DIR@/inspircd.pid
31 Restart=on-failure
32 Type=forking
33
34 [Install]
35 WantedBy=multi-user.target