Skip to content

Instantly share code, notes, and snippets.

@TehPeGaSuS
Created November 18, 2023 22:51
Show Gist options
  • Save TehPeGaSuS/0a7601629b919881b57255a8d03a47a3 to your computer and use it in GitHub Desktop.
Save TehPeGaSuS/0a7601629b919881b57255a8d03a47a3 to your computer and use it in GitHub Desktop.
Quassel asks to be reconfigured on connectivity loss

/lib/systemd/system/quasselcore.service

[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/bin/quasselcore --configdir=${DATADIR} --logfile=${LOGFILE} --loglevel=${LOGLEVEL} --port=${PORT} --listen=${LISTEN} --require-ssl
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target

/etc/systemd/system/quasselcore.service.d/override.conf

[Service]
Environment=
Environment="DATADIR=/var/lib/quassel" "LOGFILE=/var/log/quassel/core.log" "LOGLEVEL=Info" "PORT=4242" "LISTEN=::,0.0.0.0"
Environment="CERT=/var/lib/quassel/fullchain.pem" "KEY=/var/lib/quassel/privkey.pem"

ExecStart=
ExecStart=/usr/bin/quasselcore --configdir=${DATADIR} --logfile=${LOGFILE} --loglevel=${LOGLEVEL} --port=${PORT} --listen=${LISTEN} --ssl-cert=${CERT} --ssl-key=${KEY}

ExecReload=
ExecReload=/bin/kill -SIGHUP $MAINPID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment