Skip to content

Instantly share code, notes, and snippets.

@woohooyeah
Created April 24, 2016 21:07
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 woohooyeah/0f1b42346c4342c7ca70a3876269ab5d to your computer and use it in GitHub Desktop.
Save woohooyeah/0f1b42346c4342c7ca70a3876269ab5d to your computer and use it in GitHub Desktop.
[Unit]
Description=Anope IRC services
After=syslog.target network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -c 'cd /home/anope/services/bin && ./anoperc start'
ExecReload=/bin/sh -c 'cd /home/anope/services/bin && ./anoperc rehash'
ExecRestart=/bin/sh -c 'cd /home/anope/services/bin && ./anoperc restart'
ExecStop=/bin/sh -c 'cd /home/anope/services/bin && ./anoperc stop'
User=anope
Group=anope
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment