Use commandsocket to stop zuul services

Currently all but zuul-web support the commandsocket, so use that over
kill which systemd does by default.

Change-Id: Ic4eacbf6c74c8b722189780b1845ece0ff485b99
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-04-04 16:36:56 -04:00
parent 6ccb5af56e
commit 0a1c5e8c87
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
4 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Environment="PREFIX=/usr/local"
Group=zuul
User=zuul
ExecStart=/bin/sh -c "${PREFIX}/bin/zuul-executor -d"
ExecStop=/bin/sh -c "${PREFIX}/bin/zuul-executor stop"
[Install]
WantedBy=multi-user.target

View File

@ -8,6 +8,7 @@ Environment="PREFIX=/usr/local"
Group=root
User=root
ExecStart=/bin/sh -c "${PREFIX}/bin/zuul-fingergw -d"
ExecStop=/bin/sh -c "${PREFIX}/bin/zuul-fingergw stop"
[Install]
WantedBy=multi-user.target

View File

@ -8,6 +8,7 @@ Environment="PREFIX=/usr/local"
Group=zuul
User=zuul
ExecStart=/bin/sh -c "${PREFIX}/bin/zuul-merger -d"
ExecStop=/bin/sh -c "${PREFIX}/bin/zuul-merger stop"
[Install]
WantedBy=multi-user.target

View File

@ -8,6 +8,7 @@ Environment="PREFIX=/usr/local"
Group=zuul
User=zuul
ExecStart=/bin/sh -c "${PREFIX}/bin/zuul-scheduler -d"
ExecStop=/bin/sh -c "${PREFIX}/bin/zuul-scheduler stop"
ExecReload=/bin/kill -HUP $MAINPID
[Install]