奇怪 我的 RedHat Enterprise 4 裡面有啊!??
您是不是 忘記要用 root !??
不是 root 是看不到 /sbin/ 裡面的寶貝的喔
若是用別的 user 'su' 過去的 要記得 用 "su -"
是的 後面要多一個 剪號(-)
# which service
/sbin/service
# more /sbin/service
#!/bin/sh
# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
export PATH
VERSION="`basename $0` ver. 0.91"
USAGE="Usage: `basename $0` < option > | --status-all | \
[ service_name [ command | --full-restart ] ]"
SERVICE=
SERVICEDIR="/etc/init.d"
OPTIONS=
if [ $# -eq 0 ]; then
echo $"${USAGE}" >&2
exit 1
fi
cd /
while [ $# -gt 0 ]; do
case "${1}" in
--help | -h | --h* )
echo $"${USAGE}" >&2
exit 0
;;
--version | -V )
echo $"${VERSION}" >&2
exit 0
;;
*)
if [ -z "${SERVICE}" -a $# -eq 1 -a "${1}" = "--status-all" ]; then
cd ${SERVICEDIR}
for SERVICE in * ; do
case "${SERVICE}" in
functions | halt | killall | single| linuxconf| kudzu | \
*rpmorig | *rpmnew | *rpmsave | *~ | *.orig)
;;
*)
.....