systemd 守护进程
node webhook进程 同步接受GitHub post请求
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 root@ziggle:~# cat /lib/systemd/system/nsync.service
[Unit]
Description=Sync blog node service
[Service]
ExecStart=-/usr/bin/node /root/wp/www/nsyncblog.js
ExecReload=-/bin/kill -HUP $MAINPID
TimeoutSec=10s
Type=simple
KillMode=process
Restart=on-failure
RestartSec=20s
[Install]
WantedBy=multi-user.target