mynode/rootfs/standard/etc/systemd/system/www.service

25 lines
392 B
SYSTEMD
Raw Normal View History

2019-06-15 23:02:44 +00:00
# myNode www service
# /etc/systemd/system/www.service
[Unit]
Description=myNode Web Server
After=network.target
[Service]
Type=simple
KillMode=mixed
KillSignal=2
TimeoutSec=30
Restart=always
RestartSec=10
2019-08-13 03:38:47 +00:00
Nice=-15
2019-06-15 23:02:44 +00:00
ExecStart=/usr/bin/python /var/www/mynode/mynode.py
User=root
Group=root
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=www
[Install]
WantedBy=multi-user.target