mynode/rootfs/standard/etc/systemd/system/www.service
2021-11-06 23:40:57 -05:00

29 lines
481 B
Desktop File

# 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
Nice=-15
IOAccounting=true
IOWeight=2000
ExecStart=/usr/bin/python2.7 /var/www/mynode/mynode.py
# Future
#ExecStart=python3 /var/www/mynode/mynode.py
User=root
Group=root
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=www
[Install]
WantedBy=multi-user.target