Skip to content

Instantly share code, notes, and snippets.

@lkarsten
Last active November 6, 2015 14:15
Show Gist options
  • Save lkarsten/59e0827ead63e41cf760 to your computer and use it in GitHub Desktop.
Save lkarsten/59e0827ead63e41cf760 to your computer and use it in GitHub Desktop.
hitch systemd
[Unit]
Description=hitch
After=syslog.target network.target
[Service]
Type=forking
#Restart=on-failure
LimitNOFILE=131072
Environment="HITCH_OPTIONS=--config /etc/hitch/hitch.conf"
EnvironmentFile=-/etc/hitch/hitch.params
EnvironmentFile=-/etc/default/hitch
EnvironmentFile=-/etc/sysconfig/hitch
ExecStartPre=/usr/local/sbin/hitch -t $HITCH_OPTIONS
ExecStart=/usr/local/sbin/hitch --daemon $HITCH_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
@comotion
Copy link

comotion commented Oct 9, 2015

minor hitch fixed, removed -openssl prefix: https://gist.github.com/comotion/902c08daa468d083ad29

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