Kapisi/roles/WebServer/files/webserver.service

15 lines
584 B
SYSTEMD
Raw Normal View History

2022-09-15 14:23:34 -05:00
[Unit]
Description=AniNIX/WebServer | Powered by OpenResty
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/run/openresty.pid
ExecStartPre=/opt/openresty/nginx/sbin/nginx -t -q -g 'pid /run/openresty.pid; daemon on; master_process on;'
ExecStart=/opt/openresty/nginx/sbin/nginx -g 'pid /run/openresty.pid; daemon on; master_process on;'
ExecReload=/opt/openresty/nginx/sbin/nginx -g 'pid /run/openresty.pid; daemon on; master_process on;' -s reload
ExecStop=/opt/openresty/nginx/sbin/nginx -g 'pid /run/openresty.pid;' -s quit
[Install]
WantedBy=multi-user.target