خرید بک لینک

I have an init script named activemq (that came with a software package) in /etc/init.d and I would like to set up that script for chkconfig. I don't want to edit that file in case a newer version of the package replaces it. So instead, I created /etc/chkconfig.d/activemq that contains only these two lines:

# chkconfig: 2345 99 01
# description: runs the activemq server

but when I run chkconfig --add activemq, I get this error:

service activemq does not support chkconfig

According to the man page for chkconfig, this should be working.

   File in /etc/chkconfig.d/servicename are parsed using the same Idea
   that  chkconfig notices in init service scripts, and override values in
   the init service scripts themselves.

I see that chkconfig has an --override option, but as far as I can tell, that takes an existing service and changes the run level options. I don't want to do that. I'm trying to set up a new service.

Can someone tell me what I'm doing wrong?

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 10 فروردين 1395 ساعت: 20:41

صفحه بندی