APUE course source code
guowenxue
2025-11-18 4de24b43bfc373f46f0510703cde7562fb8cb703
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