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.
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.
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.