Skip to content

Instantly share code, notes, and snippets.

@rcguy
Created January 28, 2017 11:12
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 rcguy/801d9a31959f4d2f4f6ed05802839749 to your computer and use it in GitHub Desktop.
Save rcguy/801d9a31959f4d2f4f6ed05802839749 to your computer and use it in GitHub Desktop.
[Unit]
Description=irssi daemon
After=network.target
[Service]
Type=forking
User=%i
ExecStart=/usr/bin/screen -dmS autodl irssi
ExecStop=/usr/bin/screen -S autodl -X stuff '/quit\n'
WorkingDirectory=%h
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment