Skip to content

Instantly share code, notes, and snippets.

@Bakterija
Forked from drye/Irssi Screen Startup.md
Created July 30, 2017 10:16
Show Gist options
  • Save Bakterija/b4b9384f92824f76c37feeabdb03303e to your computer and use it in GitHub Desktop.
Save Bakterija/b4b9384f92824f76c37feeabdb03303e to your computer and use it in GitHub Desktop.
Start Irssi with Screen on startup on Arch Linux on Raspberry PI

Start Irssi with Screen on startup on Arch Linux on Raspberry PI

Put this in the file /etc/systemd/system/irssiscreen@.service

[Unit]
Description=irssiscreen
After=network.target

[Service]
Type=forking
User=%i
ExecStart=/usr/bin/screen -dmS ircsess irssi
ExecStop=/usr/bin/screen -S ircsess -X quit

[Install]
WantedBy=multi-user.target

Enable the service with:

sudo systemctl enable irssiscreen@yourusername.service

To reattach, simply run:

screen -rd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment