Skip to content

Instantly share code, notes, and snippets.

@comotion
Forked from lkarsten/hitch.service
Last active April 10, 2024 20:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save comotion/902c08daa468d083ad29 to your computer and use it in GitHub Desktop.
Save comotion/902c08daa468d083ad29 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.environment
EnvironmentFile=-/etc/default/hitch
EnvironmentFile=-/etc/sysconfig/hitch
ExecStartPre=/usr/local/sbin/hitch -t $HITCH_OPTIONS
ExecStart=/usr/local/sbin/hitch --daemon $HITCH_OPTIONS
# If running the sighup branch:
# ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment