PhyrePanel/compilators/debian/nginx/nginx.service.txt

23 lines
481 B
Text
Raw Permalink Normal View History

2023-11-24 23:32:47 +00:00
# Create nginx service
2023-11-25 19:56:22 +00:00
cat > /etc/systemd/system/phyre-nginx.service << EOF
2023-11-24 23:32:47 +00:00
[Unit]
2023-11-25 19:56:22 +00:00
Description=phyre-nginx
2023-11-24 23:32:47 +00:00
After=network.target
[Service]
Type=forking
2023-11-25 19:56:22 +00:00
ExecStart=/usr/local/phyre/nginx/sbin/nginx
ExecReload=/usr/local/phyre/nginx/sbin/nginx -s reload
ExecStop=/usr/local/phyre/nginx/sbin/nginx -s quit
2023-11-24 23:32:47 +00:00
PrivateTmp=true
[Install]
WantedBy=multi-user.target
EOF
# Start nginx service
systemctl daemon-reload
2023-11-25 19:56:22 +00:00
systemctl enable phyre-nginx.service
systemctl start phyre-nginx.service