Files
ansible-lxc-templates/roles/nginx/files/nginx.systemd
dimti 6270c71549 + example system unit file
+ own common tasks of prepared debian for make programs from source
+ ansible ssh port example
2023-12-29 20:05:20 +03:00

16 lines
399 B
Plaintext

[Unit]
Description=nginx - high performance web server
Documentation=http://nginx.org/en/docs/
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
[Service]
Type=forking
PIDFile=/var/run/nginx.pid
ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
[Install]
WantedBy=multi-user.target