When deploying the zuul-merger and git-daemon services on contint1001 and contint2001 ( https://gerrit.wikimedia.org/r/336807 ), the zuul-merger service spawned properly (it has a systemd unit) but the git-daemon one did not.
When I logged on one of the machine the state was:
# systemctl status git-daemon ● git-daemon.service - LSB: git-daemon service Loaded: loaded (/etc/init.d/git-daemon) Active: active (exited) since Fri 2017-02-10 03:23:56 UTC; 6h ago Feb 10 03:23:56 contint1001 systemd[1]: Started LSB: git-daemon service.
But there were no service running. The status command exited 0 and hence puppet would not try to start it.
I had to first stop it which has lead to status exiting non zero:
# systemctl stop git-daemon # systemctl status git-daemon; echo $? ● git-daemon.service - LSB: git-daemon service Loaded: loaded (/etc/init.d/git-daemon) Active: inactive (dead) since Fri 2017-02-10 09:42:48 UTC; 19s ago Process: 140970 ExecStop=/etc/init.d/git-daemon stop (code=exited, status=0/SUCCESS) Feb 10 03:23:56 contint1001 systemd[1]: Started LSB: git-daemon service. Feb 10 09:42:29 contint1001 systemd[1]: Started LSB: git-daemon service. Feb 10 09:42:48 contint1001 systemd[1]: Stopping LSB: git-daemon service... Feb 10 09:42:48 contint1001 systemd[1]: Stopped LSB: git-daemon service. 3
Then start it and it worked just fine this time:
# systemctl status git-daemon; echo $?
● git-daemon.service - LSB: git-daemon service
Loaded: loaded (/etc/init.d/git-daemon)
Active: active (running) since Fri 2017-02-10 09:43:22 UTC; 2s ago
Process: 140970 ExecStop=/etc/init.d/git-daemon stop (code=exited, status=0/SUCCESS)
Process: 141186 ExecStart=/etc/init.d/git-daemon start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/git-daemon.service
└─141191 /usr/lib/git-core/git-daemon --user=gitdaemon --pid-file=/var/run/git-daemon.pid --detach --reuseaddr --verbose --export-all --forbid-override=receiv...
Feb 10 09:43:22 contint1001 systemd[1]: Started LSB: git-daemon service.
Feb 10 09:43:22 contint1001 git-daemon[141191]: Ready to rumble
0
