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

service fleet-service stop - fails to kill the fleet process #4

Open
TonyLeeVT opened this issue May 22, 2019 · 1 comment
Open

service fleet-service stop - fails to kill the fleet process #4

TonyLeeVT opened this issue May 22, 2019 · 1 comment

Comments

@TonyLeeVT
Copy link

Thanks again for your install and management script.

When I run:

service fleet-service stop

It does not appear to kill the fleet process:
/usr/bin/fleet serve --config /opt/fleet//conf/fleet.yaml

This is the output of the status (Note the error: /etc/init.d/fleet-service: 31: kill: No such process):

service fleet-service status
● fleet-service.service - LSB: fleet service start
Loaded: loaded (/etc/init.d/fleet-service; bad; vendor preset: enabled)
Active: inactive (dead) since Wed 2019-05-22 04:47:11 PDT; 2s ago
Docs: man:systemd-sysv-generator(8)
Process: 4317 ExecStop=/etc/init.d/fleet-service stop (code=exited, status=0/SUCCESS)
Process: 1405 ExecStart=/etc/init.d/fleet-service start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/fleet-service.service
└─1416 /usr/bin/fleet serve --config /opt/fleet//conf/fleet.yaml

May 21 14:21:05 ubuntu fleet-service[1405]: ...done.
May 21 14:21:05 ubuntu systemd[1]: Started LSB: fleet service start.
May 21 14:21:06 ubuntu fleet-service[1405]: Using config file: /opt/fleet//conf/fleet.yaml
May 21 14:21:06 ubuntu fleet-service[1405]: {"component":"service","err":null,"method":"ListUsers","took":"2.727461ms","ts":"2019-05-21T21:21:06.318
May 21 14:21:06 ubuntu fleet-service[1405]: {"address":"0.0.0.0:443","msg":"listening","transport":"https","ts":"2019-05-21T21:21:06.319655087Z"}
May 22 04:47:11 ubuntu systemd[1]: Stopping LSB: fleet service start...
May 22 04:47:11 ubuntu fleet-service[4317]: * Stopping fleet-service
May 22 04:47:11 ubuntu fleet-service[4317]: /etc/init.d/fleet-service: 31: kill: No such process
May 22 04:47:11 ubuntu fleet-service[4317]: ...fail!
May 22 04:47:11 ubuntu systemd[1]: Stopped LSB: fleet service start.

@TonyLeeVT
Copy link
Author

This may or may not be related, but it does not appear that the PID file (/var/run/fleet-run.pid) is being created during service start from /etc/init.d/fleet-service.

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