root@:# systemctl start reload_go.service root@:# systemctl status reload_go.service ● reload_go.service - Service using tableflip Loaded: loaded (/etc/systemd/system/reload_go.service; static; vendor preset: enabled) Active: active (running) since Thu 2022-03-24 21:04:07 CST; 6s ago Main PID: 3929535 (reload) Tasks: 7 (limit: 4619) Memory: 1.4M CGroup: /system.slice/reload_go.service └─3929535 /root/reload/reload
Mar 24 21:04:07 systemd[1]: Started Service using tableflip. Mar 24 21:04:08 reload[3929535]: [PID: 3929535] 2022-03-24 21:04:08 http server listening 8080 root@:# systemctl reload reload_go.service root@:# systemctl status reload_go.service ● reload_go.service - Service using tableflip Loaded: loaded (/etc/systemd/system/reload_go.service; static; vendor preset: enabled) Active: active (running) since Thu 2022-03-24 21:04:07 CST; 17s ago Process: 3929585 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS) Main PID: 3929588 (reload) Tasks: 10 (limit: 4619) Memory: 1.8M CGroup: /system.slice/reload_go.service └─3929588 /root/reload/reload
Mar 24 21:04:07 systemd[1]: Started Service using tableflip. Mar 24 21:04:08 reload[3929535]: [PID: 3929535] 2022/03/24 21:04:08 http server listening 8080 Mar 24 21:04:23 systemd[1]: Reloading Service using tableflip. Mar 24 21:04:23 systemd[1]: Reloaded Service using tableflip. Mar 24 21:04:24 reload[3929588]: [PID: 3929588] 2022/03/24 21:04:24 http server listening 8080 ...
root@:# systemctl start reload_go.service root@:# systemctl status reload_go.service ● reload_go.service - Service using tableflip Loaded: loaded (/etc/systemd/system/reload_go.service; static; vendor preset: enabled) Active: active (running) since Thu 2022-03-24 21:43:15 CST; 2s ago Main PID: 3935728 (reload) Tasks: 7 (limit: 4619) Memory: 1.3M CGroup: /system.slice/reload_go.service └─3935728 /root/reload/reload
Mar 24 21:43:15 systemd[1]: Started Service using tableflip. Mar 24 21:43:16 reload[3935728]: [PID: 3935728] 2022/03/24 21:43:16 http server listening 8080 root@:# systemctl reload reload_go.service root@:# systemctl status reload_go.service ● reload_go.service - Service using tableflip Loaded: loaded (/etc/systemd/system/reload_go.service; static; vendor preset: enabled) Active: active (running) since Thu 2022-03-24 21:43:15 CST; 28s ago Process: 3935781 ExecReload=/root/reload/reload.sh /root/reload/reload.pid (code=exited, status=0/SUCCESS) Main PID: 3935789 (reload) Tasks: 7 (limit: 4619) Memory: 2.0M CGroup: /system.slice/reload_go.service └─3935789 /root/reload/reload
Mar 24 21:43:15 systemd[1]: Started Service using tableflip. Mar 24 21:43:16 reload[3935728]: [PID: 3935728] 2022/03/24 21:43:16 http server listening 8080 Mar 24 21:43:30 systemd[1]: Reloading Service using tableflip. Mar 24 21:43:31 reload[3935789]: [PID: 3935789] 2022/03/24 21:43:31 http server listening 8080 Mar 24 21:43:40 systemd[1]: Reloaded Service using tableflip. root@:/etc/systemd/system# systemctl reload reload_go.service Job for reload_go.service failed. See "systemctl status reload_go.service" and "journalctl -xe" for details. root@:# systemctl status reload_go.service ● reload_go.service - Service using tableflip Loaded: loaded (/etc/systemd/system/reload_go.service; static; vendor preset: enabled) Active: active (running) since Thu 2022-03-24 21:43:15 CST; 1min 43s ago Process: 3936335 ExecReload=/root/reload/reload.sh /root/reload/reload.pid (code=exited, status=255/EXCEPTION) Main PID: 3935789 (reload) Tasks: 7 (limit: 4619) Memory: 2.2M CGroup: /system.slice/reload_go.service └─3935789 /root/reload/reload
Mar 24 21:43:31 reload[3935789]: [PID: 3935789] 2022/03/24 21:43:31 http server listening 8080 Mar 24 21:43:40 systemd[1]: Reloaded Service using tableflip. Mar 24 21:44:39 systemd[1]: Reloading Service using tableflip. Mar 24 21:44:39 reload[3936338]: panic: reload.sh Mar 24 21:44:39 reload[3936338]: goroutine 1 [running]: Mar 24 21:44:39 reload[3936338]: main.main() Mar 24 21:44:39 reload[3936338]: /root/reload/main.go:23 +0x3e Mar 24 21:44:39 reload[3935789]: [PID: 3935789] 2022/03/24 21:44:39 server upgrade failed: child pid=3936338 exited: ex> Mar 24 21:44:49 systemd[1]: reload_go.service: Control process exited, code=exited, status=255/EXCEPTION Mar 24 21:44:49 systemd[1]: Reload failed for Service using tableflip. ...