Seeding IRC automation after a lot of work
This commit is contained in:
17
roles/IRC/files/services/irc.service
Normal file
17
roles/IRC/files/services/irc.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=AniNIX/IRC daemon
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/lib/inspircd/inspircd.pid
|
||||
ExecStart=/usr/lib/inspircd/inspircd start
|
||||
ExecReload=/usr/lib/inspircd/inspircd rehash
|
||||
ExecStop=/usr/lib/inspircd/inspircd stop
|
||||
Restart=always
|
||||
User=ircd
|
||||
Group=ircd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
16
roles/IRC/files/services/ircservices.service
Normal file
16
roles/IRC/files/services/ircservices.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=AniNIX/IRC | Anope Services
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
PIDFile=/run/anope/anope.pid
|
||||
ExecStart=/opt/anope/bin/services --confdir=/etc/anope/ --dbdir=/opt/anope/data --localedir=/opt/anope/locale --logdir=/var/log/anope --modulesdir=/opt/anope/lib --nofork
|
||||
ExecReload=/bin/kill -1 $MAINPID
|
||||
Restart=always
|
||||
User=ircd
|
||||
Group=ircd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
15
roles/IRC/files/services/ircweb.service
Normal file
15
roles/IRC/files/services/ircweb.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=AniNIX/IRC Web Client
|
||||
After=network.target irc.service ircservices.service
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/usr/local/src/KiwiIRC/
|
||||
ExecStart=/bin/sh ./kiwi -f
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
KillMode=control-group
|
||||
Restart=always
|
||||
User=ircd
|
||||
Group=ircd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user