Browse Source

Added units for quasselcore.

master
blallo 3 years ago
parent
commit
a2ed8623db
Signed by: blallo GPG Key ID: 0CBE577C9B72DC3F
  1. 8
      quasselcore/quasselcert.path
  2. 6
      quasselcore/quasselcert.service
  3. 8
      quasselcore/quasselcore.path
  4. 18
      quasselcore/quasselcore.service

8
quasselcore/quasselcert.path

@ -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

@ -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

@ -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

@ -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…
Cancel
Save