2016-05-17 14:32 GMT+08:00 Joshua M. Clulow <[email protected]>:
> On 16 May 2016 at 23:29, Fred Liu <[email protected]> wrote:
>> I have no success to boot the system V init scripts.
>> Any success here?
>
> Can you give us a bit more detail about what you're doing? Is this a
> custom script you have added to your machine? Is it in the global
> zone of your SmartOS host, or in a SmartOS or LX-branded zone? At
> what path did you install the file?
>
>
> Cheers.
>
We are running (CentOS 6.7 20151005) LX Brand. It is a custom script.
I installed it on /etc/init.d/iqs. It is just a simple sh script:
#!/bin/sh
############################################################################
# start and stop iqs exec daemon #
############################################################################
# Basic support for RedHat style chkconfig
#
# chkconfig: - 99 01
# description: Starts and stops the iqs exec daemon.
#
### BEGIN INIT INFO
# Provides: iqs
# Required-Start: $remote_fs $all
# Should-Start:
# Required-Stop:
# Default-Start: 2 3 5
# Default-Stop: 0 6
# Description: Starts and stops iqs exec daemon.
### END INIT INFO
start()
{
echo "Trying to start iqs exec daemon:"
su admin -c "/tool/iqs/bin/execd.py start"
}
stop()
{
echo "Trying to stop iqs exec daemon:"
su admin -c "/tool/iqs/bin/execd.py stop"
}case "$1" in
'start')
start
if [ -d /var/lock/subsys ]; then
touch /var/lock/subsys/iqs
elif [ -d /var/lock ]; then
touch /var/lock/iqs
fi
;;
'stop')
stop
if [ -d /var/lock/subsys ]; then
rm -f /var/lock/subsys/iqs
elif [ -d /var/lock ]; then
rm -f /var/lock/iqs
fi
;;
'restart')
restart
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
BTW, it works in normal Linux OS.
Thanks.
Fred
Thanks.
Fred
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com