Skip to content

Instantly share code, notes, and snippets.

@xvybihal
Forked from drye/Irssi Screen Startup.md
Last active September 9, 2015 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xvybihal/3f658b83b79e0a8765df to your computer and use it in GitHub Desktop.
Save xvybihal/3f658b83b79e0a8765df 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