You can't do that in the Novell distros of Linux (NLD, SLES, SUSE Pro) that I've seen...# service syslog status
syslogd (pid 2106) is running...
klogd (pid 2110) is running...
# service httpd status
httpd (pid 26830 26829 26828 26827 26826) is running...
#
#!/bin/bash
#/usr/sbin/service
if [ $USER != "root" ]
then
echo "Must be in a root login shell to run $0"
exit
fi
if [ $# -lt 2 ]
then
echo "Usage: $0 service_name stop/start/restart/status"
exit
fi
set -e
/etc/init.d/$1 $2
Subscribe to
Posts [Atom]