Initial commit.
This commit is contained in:
6
redhat-lsb/lsb_killproc
Executable file
6
redhat-lsb/lsb_killproc
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
. /etc/init.d/functions
|
||||
|
||||
LSB=LSB-1.1 killproc $*
|
||||
exit $?
|
||||
27
redhat-lsb/lsb_log_message
Executable file
27
redhat-lsb/lsb_log_message
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
. /etc/init.d/functions
|
||||
|
||||
ACTION=$1
|
||||
shift
|
||||
|
||||
case "$ACTION" in
|
||||
success)
|
||||
echo -n $*
|
||||
success "$*"
|
||||
echo
|
||||
;;
|
||||
failure)
|
||||
echo -n $*
|
||||
failure "$*"
|
||||
echo
|
||||
;;
|
||||
warning)
|
||||
echo -n $*
|
||||
warning "$*"
|
||||
echo
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
exit 0
|
||||
6
redhat-lsb/lsb_pidofproc
Executable file
6
redhat-lsb/lsb_pidofproc
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
. /etc/init.d/functions
|
||||
|
||||
pidofproc $*
|
||||
exit $?
|
||||
45
redhat-lsb/lsb_start_daemon
Executable file
45
redhat-lsb/lsb_start_daemon
Executable file
@@ -0,0 +1,45 @@
|
||||
#!/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 $?
|
||||
Reference in New Issue
Block a user