mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-15 09:59:16 +00:00
23 lines
373 B
SYSTEMD
23 lines
373 B
SYSTEMD
|
# myNode start service
|
||
|
# /etc/systemd/system/mynode.service
|
||
|
|
||
|
[Unit]
|
||
|
Description=myNode Startup
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
ExecStart=/usr/bin/mynode_startup.sh
|
||
|
User=root
|
||
|
Group=root
|
||
|
StandardOutput=syslog
|
||
|
StandardError=syslog
|
||
|
SyslogIdentifier=mynode
|
||
|
|
||
|
RestartSec=30
|
||
|
RemainAfterExit=yes
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|