Git-Auto-Deploy icon indicating copy to clipboard operation
Git-Auto-Deploy copied to clipboard

Systemctl doesn't stop daemon

Open daviddavo opened this issue 4 years ago • 1 comments

● git-auto-deploy.service - LSB: Script to start Autodeploy Git
   Loaded: loaded (/etc/init.d/git-auto-deploy; generated)
   Active: inactive (dead) since Mon 2020-03-02 12:14:44 CET; 17s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2364 ExecStart=/etc/init.d/git-auto-deploy start (code=exited, status=0/SUCCESS)
  Process: 2748 ExecStop=/etc/init.d/git-auto-deploy stop (code=exited, status=0/SUCCESS)
    Tasks: 3 (limit: 4915)
   Memory: 19.6M
   CGroup: /system.slice/git-auto-deploy.service
           └─2458 /usr/bin/python /bin/git-auto-deploy --daemon-mode --pid-file /var/run/git-auto-deploy/git-auto-deploy.pid --log-file /var/log/git-auto-deploy.log --config /etc/git-auto-deploy.conf.json

mar 02 12:06:56 chervidor systemd[1]: Starting LSB: Script to start Autodeploy Git...
mar 02 12:06:56 chervidor git-auto-deploy[2364]: Starting..
mar 02 12:06:57 chervidor systemd[1]: Started LSB: Script to start Autodeploy Git.
mar 02 12:14:44 chervidor systemd[1]: Stopping LSB: Script to start Autodeploy Git...
mar 02 12:14:44 chervidor git-auto-deploy[2748]: Stopping..
mar 02 12:14:44 chervidor git-auto-deploy[2748]: start-stop-daemon: matching only on non-root pidfile /var/run/git-auto-deploy/git-auto-deploy.pid is insecure
mar 02 12:14:44 chervidor systemd[1]: git-auto-deploy.service: Succeeded.
mar 02 12:14:44 chervidor systemd[1]: Stopped LSB: Script to start Autodeploy Git.

htop shows three processes, with pid 2458, 2459 and 2460 in Sleeping status and if I use netstat, the ports 8001 and 8002 are in use by process 2458

daviddavo avatar Mar 02 '20 10:03 daviddavo

$ sudo ls -l /var/run/git-auto-deploy/
total 4
-rw-rw-rw- 1 git-auto-deploy git-auto-deploy 4 mar  2 12:25 git-auto-deploy.pid

It seems that start-stop-daemon doesn't accept pidfiles with a+w permissions

daviddavo avatar Mar 02 '20 11:03 daviddavo