|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /etc/redhat-lsb/ |
Upload File : |
#!/bin/bash
. /etc/init.d/functions
nice=
force=
pidfile=
user=
check=
RETVAL=
while [ "$1" != "${1##[-+]}" ]; do
case $1 in
-f)
force="--force"
shift
;;
-n)
nice=$2
shift 2
;;
-p)
pidfile="--pidfile $2"
shift 2
;;
-u)
user="--user $2"
shift 2
;;
-c)
check="--check $2"
shift 2
;;
*)
echo "Unknown Option $1"
echo "Options are:"
echo "-f"
echo "-p {pidfile}"
echo "-n [+/-nicelevel]"
echo "-u {user}"
echo "-c {base}"
exit 1;;
esac
done
LSB=LSB-1.1 daemon ${force:-} ${nice:-} ${pidfile:-} ${user:-} ${check:-} $*
exit $?