Added shutdown daemon

This commit is contained in:
2018-11-22 03:04:40 +00:00
parent bb17008b55
commit f8ee591174
5 changed files with 192 additions and 8 deletions

12
shutdown.service Normal file
View File

@@ -0,0 +1,12 @@
#! /bin/sh
[Unit]
Description=Shutdown daemon
[Service]
Type=forking
PIDFile=/var/run/shutdown.pid
WorkingDirectory=/home/root/Robotd
ExecStart=/etc/init.d/shtd start
ExecReload=/etc/init.d/shtd restart
ExecStop=/etc/init.d/shtd stop
[Install]
WantedBy=multi-user.target