Added units for quasselcore.
This commit is contained in:
parent
d266369a98
commit
a2ed8623db
8
quasselcore/quasselcert.path
Normal file
8
quasselcore/quasselcert.path
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Refresh quassel certificates
|
||||
|
||||
[Path]
|
||||
PathChanged=/etc/letsencrypt/live/unit.abbiamoundominio.org/cert.pem
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
6
quasselcore/quasselcert.service
Normal file
6
quasselcore/quasselcert.service
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=Refresh quassel certificates
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/bash -c "cat /etc/letsencrypt/live/unit.abbiamoundominio.org/{fullchain,privkey}.pem > /var/lib/quassel/quasselCert.pem && chown quasselcore:quassel /var/lib/quassel/quasselCert.pem"
|
8
quasselcore/quasselcore.path
Normal file
8
quasselcore/quasselcore.path
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Refresh quasselcore after certificates change
|
||||
|
||||
[Path]
|
||||
PathChanged=/var/lib/quassel/quasselCert.pem
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
18
quasselcore/quasselcore.service
Normal file
18
quasselcore/quasselcore.service
Normal file
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=distributed IRC client using a central core component
|
||||
Documentation=man:quasselcore(1)
|
||||
Wants=network-online.target postgresql.service
|
||||
After=network-online.target postgresql.service
|
||||
|
||||
[Service]
|
||||
User=quasselcore
|
||||
Group=quassel
|
||||
WorkingDirectory=/var/lib/quassel
|
||||
Environment="DATADIR=/var/lib/quassel" "LOGFILE=/var/log/quassel/core.log" "LOGLEVEL=Info" "PORT=4242" "LISTEN=::,0.0.0.0"
|
||||
EnvironmentFile=-/etc/default/quasselcore
|
||||
ExecStart=/usr/local/bin/quasselcore --configdir=${DATADIR} --logfile=${LOGFILE} --loglevel=${LOGLEVEL} --port=${PORT} --listen=${LISTEN} --require-ssl --ssl-cert=${SSL_CERT} --ssl-key=${SSL_KEY}
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user