PhyrePanel/compilators/debian/nginx/nginx.service.txt
Bozhidar Slaveykov ae940da7d4 update
2023-11-25 21:56:22 +02:00

22 lines
481 B
Text

# Create nginx service
cat > /etc/systemd/system/phyre-nginx.service << EOF
[Unit]
Description=phyre-nginx
After=network.target
[Service]
Type=forking
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
PrivateTmp=true
[Install]
WantedBy=multi-user.target
EOF
# Start nginx service
systemctl daemon-reload
systemctl enable phyre-nginx.service
systemctl start phyre-nginx.service