mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-16 10:22:50 +00:00
25 lines
392 B
Desktop File
25 lines
392 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
|
|
ExecStart=/usr/bin/python /var/www/mynode/mynode.py
|
|
User=root
|
|
Group=root
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=www
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|