Skip to content

Systemctl doesn't stop daemon #249

@daviddavo

Description

@daviddavo
● 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions