Skip to content

Instantly share code, notes, and snippets.

@paurkedal
Created September 8, 2016 19:19
Show Gist options
  • Select an option

  • Save paurkedal/b7d0032ac0901c4df1ca45db597ad3ed to your computer and use it in GitHub Desktop.

Select an option

Save paurkedal/b7d0032ac0901c4df1ca45db597ad3ed to your computer and use it in GitHub Desktop.
[Unit]
Description=OCSIGEN Server Instance
After=network.target
[Service]
EnvironmentFile=/etc/sysconfig/ocsigen-%i
User=ocsigen
ExecStart=/usr/local/bin/opam-env ${OPAMSWITCH} ocsigenserver -c /etc/ocsigen/%i-${OPAMSWITCH}.conf
ExecStop=/usr/bin/echo shutdown >/var/run/ocsigen/%i-command.pipe
ExecReload=/usr/bin/echo reload >/var/run/ocsigen/%i-command.pipe
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment