Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systemctl doesn't stop daemon #249

Open
daviddavo opened this issue Mar 2, 2020 · 1 comment
Open

Systemctl doesn't stop daemon #249

daviddavo opened this issue Mar 2, 2020 · 1 comment

Comments

@daviddavo
Copy link

daviddavo commented Mar 2, 2020

● 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
Copy link
Author

$ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant