1

嗨!

我想在 init.d 中添加我的脚本,它在启动时启动服务器,但是当我无法将它添加到 chkconfig 时。

这是我的脚本的负责人:

#!/bin/bash
# chkconfig :       2345 19 18
# Default-Start :   2 3 4 5
# Default-Stop :    0 1 6
# Short-description: Conan C/C++ Package Manager server
# description :      Conan C/C++ Package Manager server
# processname: conan_server

# Source function library.
. /etc/init.d/functions

当我尝试添加它时:

[root init.d]# chmod 777 conan_server
[root init.d]# chkconfig --add conan_server
-> service conan_server does not support chkconfig

你能帮助我吗 ?谢谢 :)

4

0 回答 0