/var/ossec/api/scripts/install_daemon.sh - > line 72: insserv: command not found

87 views
Skip to first unread message

Mark Carter

unread,
Jun 8, 2016, 5:16:02 PM6/8/16
to Wazuh mailing list
Hello, I followed the documentation on installing and have a good working install on Mint 17.3.

Great documentation! Everything went as expected with a very minor edit here and there.

When I ran the command to install the init.d startup script I got this error...

sudo /var/ossec/api/scripts/install_daemon.sh  - > line 72: insserv: command not found

Tried: ln -s /usr/lib/insserv/insserv /sbin/insserv - NO LUCK - also, google searches did not find anything...

It is executable: -rwxr-xr-x 1 root root 1878 Jun  8 12:02 /var/ossec/api/scripts/install_daemon.sh

Has anyone run into this before now, did not see the topic listed...?

ps: running api manually works fine...
      /usr/bin/nodejs /var/ossec/api/app.js > /var/ossec/logs/api.log &
      ps ax | grep api  
      32503 pts/0    Sl     0:00 /usr/bin/nodejs /var/ossec/api/app.js

thank you
Mark

Santiago Bassett

unread,
Jun 8, 2016, 6:42:59 PM6/8/16
to Mark Carter, Wazuh mailing list
Hi Mark,

thanks for the great feedback. Do you have an /etc/init.d/wazuh-api file? Is it an executable? 

Regards

--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/0c0386c5-2d36-412f-a95b-b71307e4e8e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Carter

unread,
Jun 8, 2016, 9:57:11 PM6/8/16
to Wazuh mailing list, mark...@gmail.com
Yes, its there but it has 0 file length:
 MINT3410 / # ls -l /etc/init.d/wazuh-api 
-rwxr-xr-x 1 root root 0 Jun  8 14:01 /etc/init.d/wazuh-api

There is a wazah-api in /var/ossec/api/scripts/ -which is non 0 file lenght 
MINT3410 / # ls -l /var/ossec/api/scripts/wazuh-api
-rwxr-xr-x 1 root root 1002 Jun  8 12:02 /var/ossec/api/scripts/wazuh-api

I ran this insserv command manually and this is the output...

MINT3410 / # /usr/lib/insserv/insserv /etc/init.d/wazuh-api
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `cron'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `cron'
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'friendly-recovery' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `friendly-recovery'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `friendly-recovery'

all seems to centered around insserv command ?

thank you
Mark
 

On Wednesday, June 8, 2016 at 3:42:59 PM UTC-7, Santiago Bassett wrote:
Hi Mark,

thanks for the great feedback. Do you have an /etc/init.d/wazuh-api file? Is it an executable? 

Regards
On Wed, Jun 8, 2016 at 11:16 PM, Mark Carter wrote:
Hello, I followed the documentation on installing and have a good working install on Mint 17.3.

Great documentation! Everything went as expected with a very minor edit here and there.

When I ran the command to install the init.d startup script I got this error...

sudo /var/ossec/api/scripts/install_daemon.sh  - > line 72: insserv: command not found

Tried: ln -s /usr/lib/insserv/insserv /sbin/insserv - NO LUCK - also, google searches did not find anything...

It is executable: -rwxr-xr-x 1 root root 1878 Jun  8 12:02 /var/ossec/api/scripts/install_daemon.sh

Has anyone run into this before now, did not see the topic listed...?

ps: running api manually works fine...
      /usr/bin/nodejs /var/ossec/api/app.js > /var/ossec/logs/api.log &
      ps ax | grep api  
      32503 pts/0    Sl     0:00 /usr/bin/nodejs /var/ossec/api/app.js

thank you
Mark

--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+unsubscribe@googlegroups.com.

Jesus Linares

unread,
Jun 9, 2016, 4:52:41 AM6/9/16
to Wazuh mailing list, mark...@gmail.com
Hi Mark,

that issue will be fixed in the next release. In the meantime, you can use the new script that should work:
The new installer checks if you use systemctl or sysvinit. In your case is sysvinit, so the installer copies the init script to /etc/init.d. If the installer fails to enable the script, you can enable it manually (the file in /etc/init.d will not be empty).


Let me know if it works.

Thanks.

Mark Carter

unread,
Jun 10, 2016, 2:12:40 AM6/10/16
to Wazuh mailing list, mark...@gmail.com
Hi, the new scripts worked...

MINT3410 network # ls -l /var/ossec/var/run/
total 32
-rw-r----- 1 ossec  ossec 5 Jun  9 22:57 ossec-analysisd-2463.pid
-rw-r----- 1 root   ossec 5 Jun  9 22:57 ossec-execd-2460.pid
-rw-r----- 1 root   root  5 Jun  9 22:57 ossec-logcollector-2467.pid
-rw-r----- 1 ossecm ossec 5 Jun  9 22:57 ossec-maild-2455.pid
-rw-r----- 1 ossec  ossec 5 Jun  9 22:57 ossec-monitord-2572.pid
-rw-r----- 1 ossecr ossec 5 Jun  9 22:57 ossec-remoted-2486.pid
-rw-r----- 1 root   root  5 Jun  9 22:57 ossec-syscheckd-2568.pid
-rw-r--r-- 1 root   root  5 Jun  9 22:57 wazuh-api.pid

MINT3410 network # service wazuh-api status
WAZUH-API is running.


thank you!

Jesus Linares

unread,
Jun 10, 2016, 3:43:29 AM6/10/16
to Wazuh mailing list, mark...@gmail.com
Nice.

Thanks for your feedback.
Reply all
Reply to author
Forward
0 new messages