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

24 lines
414 B
SYSTEMD
Raw Normal View History

2019-06-15 23:02:44 +00:00
# myNode start service
# /etc/systemd/system/mynode.service
[Unit]
Description=myNode Startup
2020-04-03 02:00:11 +00:00
Before=docker.service containerd.service
2019-06-15 23:02:44 +00:00
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