MoinQ:

Contents

  1. history
nginxのサービス化 https://gakumon.tech/nginx/nginx_install_basic_ubuntu_4.html#google_vignette

https://www.nginx.com/resources/wiki/start/topics/examples/systemd/

You'll need to add NGINX systemd service file in /lib/systemd/system/nginx.service.

1. history

/conoha

/usr/sbin/nginx

[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/local/sbin/nginx -t
ExecStart=/usr/local/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target


CategoryDns CategoryWatch CategoryTemplate

MoinQ: nginx/systemd (last edited 2024-03-24 11:38:20 by ToshinoriMaeno)