]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - make/template/inspircd.service
Use network-online instead of network in the systemd service.
[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 After=network-online.target
25 Wants=network-online.target
26
27 [Service]
28 ExecReload=@SCRIPT_DIR@/inspircd rehash
29 ExecStart=@SCRIPT_DIR@/inspircd start
30 ExecStop=@SCRIPT_DIR@/inspircd stop
31 PIDFile=@DATA_DIR@/inspircd.pid
32 Restart=on-failure
33 Type=forking
34 User=@USER@
35 Group=@GROUP@
36
37 [Install]
38 WantedBy=multi-user.target