1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| [Unit]
| Description=RaspberryPi iotd program Service
| After=network.target
|
| [Service]
| Type=simple
| ExecStartPre=/bin/rm -f /tmp/.iotd.pid /var/log/iotd.log
| ExecStart=/usr/bin/iotd -c /etc/iotd.conf
| ExecStop=/bin/rm -f /tmp/.iotd.pid
|
| Restart=always
| RestartSec=2
|
| [Install]
| WantedBy=multi-user.target
|
|