www-servers/h2o: update systemd unit
authorAkinori Hattori <hattya@gentoo.org>
Wed, 4 Jul 2018 13:22:19 +0000 (22:22 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Wed, 4 Jul 2018 13:23:48 +0000 (22:23 +0900)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

www-servers/h2o/files/h2o.service

index fe32c45cd90f2cbecef3b61a6cee585519346ff0..0ea3f45fec44329cc7a2b95c8a7325684282fb9e 100644 (file)
@@ -1,13 +1,13 @@
 [Unit]
-Description=An optimized HTTP/1.x, HTTP/2 server
-After=network-online.target nss-lookup.target remote-fs.target
+Description=H2O - the optimized HTTP/1, HTTP/2 server
+After=network.target remote-fs.target nss-lookup.target
 
 [Service]
-Type=simple
-ExecStart=/usr/bin/h2o -c /etc/h2o/h2o.conf -m master
-SyslogLevel=notice
+ExecStartPre=/usr/bin/h2o -m test -c /etc/h2o/h2o.conf
+ExecStart=/usr/bin/h2o -m master -c /etc/h2o/h2o.conf
+ExecReload=/bin/kill -HUP ${MAINPID}
+ExecStop=/bin/kill -TERM ${MAINPID}
 PrivateTmp=true
-LimitNOFILE=infinity
 
 [Install]
 WantedBy=multi-user.target