2020-09-10 03:10:14 +00:00
|
|
|
# myNode background service
|
|
|
|
# /etc/systemd/system/background.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=myNode Background Checks
|
2020-09-11 01:29:25 +00:00
|
|
|
After=network.target
|
2020-09-10 03:10:14 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
KillMode=control-group
|
|
|
|
TimeoutSec=30
|
|
|
|
Restart=always
|
|
|
|
RestartSec=30
|
|
|
|
ExecStart=/usr/bin/mynode_background.sh
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|