Gbp-Pq: Name fix-systemctl-path.diff
# otherwise start the instance the old way.
#
if [ -d "@systemdsystemunitdir@" ] && [ $(id -u) -eq 0 ];then
- @bindir@/systemctl start @package_name@@$SERV_ID.service
+ /bin/systemctl start @package_name@@$SERV_ID.service
if [ $? -ne 0 ]; then
return 1
fi
#
# Now, check if systemctl is aware of this running instance
#
- @bindir@/systemctl is-active @package_name@@$SERV_ID.service > /dev/null 2>&1
+ /bin/systemctl is-active @package_name@@$SERV_ID.service > /dev/null 2>&1
if [ $? -eq 0 ]; then
#
# systemctl sees the running process, so stop it correctly
#
- @bindir@/systemctl stop @package_name@@$SERV_ID.service
+ /bin/systemctl stop @package_name@@$SERV_ID.service
else
#
# Have to kill it since systemctl doesn't think it's running