Skip to content

Instantly share code, notes, and snippets.

@plainbanana
Forked from negima1976/h2o.service
Created October 11, 2017 20:08
Show Gist options
  • Save plainbanana/5d0f8b22545b17ce5aabdf053050fa67 to your computer and use it in GitHub Desktop.
Save plainbanana/5d0f8b22545b17ce5aabdf053050fa67 to your computer and use it in GitHub Desktop.
h2o systemd service file
[Unit]
Description=H2O the optimized HTTP/1, HTTP/2 server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/var/run/h2o/h2o.pid
ExecStartPre=/usr/local/bin/h2o -c /etc/h2o/h2o.conf -t
ExecStart=/usr/local/bin/h2o -c /etc/h2o/h2o.conf -m daemon
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment