CentOS7へ移行したのでh2o用のsystemd service fileを作った
/lib/systemd/system/h2o.service
[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
あとは
systemctl enable h2o.service systemctl start h2o
で起動させて
systemctl status h2o
で確認してください
h2o.serviceを書き換えたあとは
systemctl daemon-reload
してからstartやrestart等実行して下さい
参考URL CentOS7で使われているsystemctlについて少しまとめた Linux女子部 systemd徹底入門