yast realted scripts were updated.
This commit is contained in:
parent
eae40f90a0
commit
eaff53bce5
@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
|
||||||
# enable the service
|
# enable the service
|
||||||
insserv -d /etc/init.d/micasad
|
insserv -d /etc/init.d/micasad >/dev/null 2>&1
|
||||||
# install PAM modules
|
# install PAM modules
|
||||||
(/usr/sbin/casacfgpam)
|
(/usr/sbin/casacfgpam)
|
||||||
RCODE=$?
|
RCODE=$?
|
||||||
@ -8,5 +7,6 @@ if(test $RCODE != 0)
|
|||||||
then
|
then
|
||||||
exit $RCODE
|
exit $RCODE
|
||||||
else
|
else
|
||||||
|
/etc/init.d/micasad restart >/dev/null 2>&1
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
# Description: miCASA daemon
|
# Description: miCASA daemon
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
MICASAD_BIN=/usr/sbin/micasad.sh
|
MICASAD_BIN=/usr/sbin/micasad.sh
|
||||||
|
MICASAD_PID=/var/run/micasad.pid
|
||||||
|
MICASAD_MONO=/usr/bin/mono
|
||||||
|
|
||||||
test -x $MICASAD_BIN || exit 5
|
test -x $MICASAD_BIN || exit 5
|
||||||
|
|
||||||
. /etc/rc.status
|
. /etc/rc.status
|
||||||
@ -37,9 +40,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo "Shutting down micasad "
|
echo "Shutting down micasad "
|
||||||
#killproc -TERM $MICASAD_BIN
|
killproc -p $MICASAD_PID -TERM $MICASAD_MONO
|
||||||
pid=`cat /var/run/micasad.pid` >/dev/null 2>&1
|
|
||||||
kill -s TERM $pid >/dev/null 2>&1
|
|
||||||
|
|
||||||
# Remember status and be verbose
|
# Remember status and be verbose
|
||||||
rc_status -v
|
rc_status -v
|
||||||
@ -87,23 +88,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
echo "Checking micasad service ..."
|
echo "Checking micasad service ..."
|
||||||
/sbin/checkproc micasad
|
checkproc -p $MICASAD_PID $MICASAD_BIN
|
||||||
res=$?
|
|
||||||
if [ $res == 0 ]
|
|
||||||
then
|
|
||||||
echo -n "0 - service up and running"
|
|
||||||
elif [ $res == 1 ]
|
|
||||||
then
|
|
||||||
echo -n "1 - service running under mono, /var/run/pid file exists"
|
|
||||||
elif [ $res == 2 ]
|
|
||||||
then
|
|
||||||
echo -n "2 - service status unknown, /var/lock/lock file exists"
|
|
||||||
elif [ $res == 3 ]
|
|
||||||
then
|
|
||||||
echo -n "3 - service not running"
|
|
||||||
else
|
|
||||||
echo -n "service status unknown"
|
|
||||||
fi
|
|
||||||
|
|
||||||
rc_status -v
|
rc_status -v
|
||||||
;;
|
;;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
|
||||||
#disable the service
|
#disable the service
|
||||||
insserv -r /etc/init.d/micasad
|
/etc/init.d/micasad stop >/dev/null 2>&1
|
||||||
|
insserv -r /etc/init.d/micasad >/dev/null 2>&1
|
||||||
# uninstall PAM modules
|
# uninstall PAM modules
|
||||||
(/usr/sbin/casaucfgpam)
|
(/usr/sbin/casaucfgpam)
|
||||||
RCODE=$?
|
RCODE=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user