0

I don't know if my title is significant but I hope you can help me.

I'm using Solaris Services (on a SunOS 5.10 station) to start/stop/restart business applications. The services work fine but I've some kind of issue.

The applications can also be start/stop/restart manually by scripts, and some users still use those old scripts (and I can't change their way to work). So I have to face sometimes to a disabled or an offline service, but the application running fine...

It's a problem because I use my services to monitor the state of each application on each server with a GUI, which is wrong in this case.

So I wonder if we can catch the status of an application and define the service status with it. Or anything like this.

Tell me if I'm not clear.

4

1 回答 1

0

在开始时将以下内容添加到您的脚本中:

if [ -z $SMF_FRMI ]; then
    echo "Don't be nasty!!!"
    exit 1
fi

脱机状态是因为 SMF 已经启动而无法启动服务。最好不要让用户成为 root,而是设置控制您的服务并使选定用户成为该角色的一部分的角色。

于 2012-09-05T21:53:26.063 回答