2019-06-15 23:02:44 +00:00
|
|
|
# myNode www service
|
|
|
|
# /etc/systemd/system/www.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=myNode Drive Check
|
|
|
|
Wants=mynode.service
|
|
|
|
After=mynode.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2020-07-17 23:10:23 +00:00
|
|
|
KillMode=control-group
|
2019-06-15 23:02:44 +00:00
|
|
|
TimeoutSec=30
|
|
|
|
Restart=always
|
|
|
|
RestartSec=10
|
|
|
|
ExecStart=/usr/bin/drive_check.sh
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|