30 lines
625 B
Markdown
30 lines
625 B
Markdown
# keeprunningd
|
|
|
|
* Changelog
|
|
* v0.3.0 - add file lock
|
|
* v0.2.0 - add restart command
|
|
* v0.1.0 - first version
|
|
|
|
|
|
* Service
|
|
* https://bitbucket.org/hatterjiang/linux-service-sample/src/master/
|
|
* https://stackoverflow.com/questions/61443052/rust-daemon-best-practices
|
|
* https://wiki.archlinux.org/index.php/systemd
|
|
|
|
|
|
Sample of aliyun service:
|
|
```shell
|
|
# cat /etc/systemd/system/aliyun.service
|
|
[Unit]
|
|
Description=aliyun-assist
|
|
After=network-online.target
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/sbin/aliyun-service
|
|
KillMode=process
|
|
Restart=on-failure
|
|
RestartSec=1min
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
```
|