Added units for quasselcore.

This commit is contained in:
sfigato 2019-03-11 12:03:59 +01:00
parent d266369a98
commit a2ed8623db
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
4 changed files with 40 additions and 0 deletions

View 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

View 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"

View File

@ -0,0 +1,8 @@
[Unit]
Description=Refresh quasselcore after certificates change
[Path]
PathChanged=/var/lib/quassel/quasselCert.pem
[Install]
WantedBy=multi-user.target

View 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