# otherwise start the instance the old way.
#
if [ -d "@systemdsystemunitdir@" ] && [ $(id -u) -eq 0 ];then
- @bindir@/systemctl start @package_name@@$SERV_ID.service -l
+ /bin/systemctl start @package_name@@$SERV_ID.service -l
if [ $? -ne 0 ]; then
return 1
fi
# Use systemctl if available.
#
if [ -d "@systemdsystemunitdir@" ] && [ $(id -u) -eq 0 ];then
- @bindir@/systemctl status @package_name@@$SERV_ID.service -l --no-pager
+ /bin/systemctl status @package_name@@$SERV_ID.service -l --no-pager
rv=$?
if [ $rv -ne 0 ]; then
return 1
# Use systemctl if available and running as root,
#
if [ -d "@systemdsystemunitdir@" ] && [ $(id -u) -eq 0 ];then
- @bindir@/systemctl status @package_name@@*.service -l --no-pager
+ /bin/systemctl status @package_name@@*.service -l --no-pager
ret=$?
if [ $? -ne 0 ]; then
return 1
#
# 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 -l
+ /bin/systemctl stop @package_name@@$SERV_ID.service -l
else
#
# Have to kill it since systemctl doesn't think it's running