/usr/sbin/argus requested by /etc/init.d/argus-server is missing

Bug #499431 reported by Hilario J. Montoliu (hjmf)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
argus (Ubuntu)
New
Undecided
Unassigned

Bug Description

Probably it's a dup of bug #192868 however the files and the release are not the same.

The issue is that the init script in karmic of argus-server sets as the daemon file the file "/usr/sbin/argus" which doesn't exists after argus-server installation.

    root@SNORTIDS:/usr/share/doc/argus-server# grep -C3 ^DAEMON= /etc/init.d/argus-server
    DEFAULTS=/etc/default/argus-server
    LOGFILE=/var/log/argus/argus.log
    CONFFILE=/etc/argus.conf
    DAEMON=/usr/sbin/argus
    NAME=argus
    PIDFILE=/var/run/argus.pid

The init.d script arises an exit 1 error. The exit 1 appears after testing the existence of /usr/sbin/argus file

    root@SNORTIDS:/usr/share/doc/argus-server# bash -x /etc/init.d/argus-server start
    + set -e
    + DEFAULTS=/etc/default/argus-server
    + LOGFILE=/var/log/argus/argus.log
    + CONFFILE=/etc/argus.conf
    + DAEMON=/usr/sbin/argus
    + NAME=argus
    + PIDFILE=/var/run/argus.pid
    + test -f /etc/default/argus-server
    + . /etc/default/argus-server
    ++ STARTUP=boot
    + '[' boot = dialup ']'
    + '[' boot = none ']'
    + '[' '!' -f /etc/argus.conf ']'
    + test -x /usr/sbin/argus
    + exit 1

The right file seems to be /usr/sbin/argus-linux which exists.

Just creating a symlink of that script to the "missing" /usr/bin/argus file (or editing the init.d script to point to the right file) solves the problem:

    root@SNORTIDS:/usr/share/doc/argus-server# ln -s /usr/sbin/argus_linux /usr/sbin/argus
    root@SNORTIDS:/usr/share/doc/argus-server# bash -x /etc/init.d/argus-server start
    + set -e
    + DEFAULTS=/etc/default/argus-server
    + LOGFILE=/var/log/argus/argus.log
    + CONFFILE=/etc/argus.conf
    + DAEMON=/usr/sbin/argus
    + NAME=argus
    + PIDFILE=/var/run/argus.pid
    + test -f /etc/default/argus-server
    + . /etc/default/argus-server
    ++ STARTUP=boot
    + '[' boot = dialup ']'
    + '[' boot = none ']'
    + '[' '!' -f /etc/argus.conf ']'
    + test -x /usr/sbin/argus
    + case "$1" in
    + echo -n 'Starting network auditing daemon: '
    Starting network auditing daemon: + testrunning
    + '[' -f /var/run/argus.pid ']'
    + /usr/sbin/argus -w /var/log/argus/argus.log -n /var/run/argus.pid
    argus[28766]: started+ echo 'argus. '

    argus.

I'm running ubuntu karmic

    root@SNORTIDS:/usr/share/doc/argus-server# lsb_release -rd
    Description: Ubuntu 9.10
    Release: 9.10

root@SNORTIDS:/usr/share/doc/argus-server# LC_ALL=C apt-cache policy argus-server
argus-server:
  Installed: 1:2.0.6.fixes.1-16
  Candidate: 1:2.0.6.fixes.1-16
  Version table:
 *** 1:2.0.6.fixes.1-16 0
        500 http://es.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.