Skip to content

Instantly share code, notes, and snippets.

@angristan
Created November 17, 2016 22:01
Show Gist options
  • Save angristan/214f0aa396c1a341963b937b92a38d0d to your computer and use it in GitHub Desktop.
Save angristan/214f0aa396c1a341963b937b92a38d0d to your computer and use it in GitHub Desktop.
h2o webserver systemd init script
[Unit]
Description=H2O - the optimized HTTP/1, HTTP/2 server
After=network-online.target nss-lookup.target remote-fs.target
[Service]
Type=simple
PIDFile=/run/h2o.pid
ExecStart=/usr/local/bin/h2o --mode master --conf /etc/h2o/h2o.conf
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -TERM $MAINPID
SyslogLevel=notice
PrivateTmp=true
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment