summaryrefslogtreecommitdiff
path: root/h2o/h2o.service
diff options
context:
space:
mode:
Diffstat (limited to 'h2o/h2o.service')
-rw-r--r--h2o/h2o.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/h2o/h2o.service b/h2o/h2o.service
new file mode 100644
index 000000000..680f6ef4e
--- /dev/null
+++ b/h2o/h2o.service
@@ -0,0 +1,16 @@
+[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/bin/h2o --mode master --conf /etc/h2o.conf
+ExecReload=/usr/bin/kill -HUP $MAINPID
+ExecStop=/usr/bin/kill -TERM $MAINPID
+SyslogLevel=notice
+PrivateTmp=true
+LimitNOFILE=infinity
+
+[Install]
+WantedBy=multi-user.target