| Server IP : 162.253.224.18 / Your IP : 216.73.216.135 Web Server : Apache System : Linux s18.infinitysrv.com 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64 User : dejavumk ( 1184) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib64/pm-utils/bin/ |
Upload File : |
#!/bin/sh
# Handle service invocation on distros that do not have a "service" command.
# It handles LSB by default, and other distros that the maintainer is aware of.
REL="/etc/slackware-release /etc/slackware-version
/etc/arch-release"
svc="/etc/init.d/$1"
exists() { [ -x "$svc" ]; }
start() { "$svc" start; }
stop() { "$svc" stop; }
status() { "$svc" status; }
for rel in $REL; do
[ -f "$rel" ] || continue
case $rel in
*slackware*) svc="/etc/rc.d/rc.$1";;
*arch*) svc="/etc/rc.d/$1"
status() { [ -e "/var/run/daemons/$1" ] && echo "$1 running"; }
;;
esac
break
done
exists || { echo "$1: unrecognized service or non-LSB Linux distro"; exit 1; }
case $2 in
start|stop|status) "$2" ;;
restart) stop; start ;;
*) echo "$2: Unrecognized service command"
exit 1 ;;
esac