相关疑难解决方法(0)

chkconfig 支持 Linux 服务需要什么?

我正在尝试通过

chkconfig -add <servicename> 
Run Code Online (Sandbox Code Playgroud)

我收到一条消息说

service <servicename> does not support chkconfig
Run Code Online (Sandbox Code Playgroud)

我正在使用 Red Hat Enterprise 4。我试图在启动时添加到自动启动的脚本如下:

#!/bin/sh

soffice_start() {   if [ -x /opt/openoffice.org2.4/program/soffice ]; then
        echo "Starting Open Office as a Service"
        #echo " soffice -headless -accept=socket,port=8100;urp;StarOffice.ServiceManager
-nofirststartwizard"
        /opt/openoffice.org2.4/program/soffice
-headless -accept="socket,host=0.0.0.0,port=8100;urp;StarOffice.ServiceManager"
-nofirststartwizard &   else
        echo "Error: Could not find the soffice program. Cannot Start SOffice."   fi }

soffice_stop() {   if [ -x /usr/bin/killall ]; then
        echo "Stopping Openoffice"
        /usr/bin/killall soffice 2> /dev/null   else
        echo "Eroor: Could not find killall.  Cannot …
Run Code Online (Sandbox Code Playgroud)

scripting linux redhat chkconfig

37
推荐指数
2
解决办法
7万
查看次数

标签 统计

chkconfig ×1

linux ×1

redhat ×1

scripting ×1