Skip to content
Lorenzo Mangani edited this page May 16, 2016 · 7 revisions

The init.d script can be used to start/stop captagent in a nicer way.

A sample of init.d script for captagent is provided at:

/usr/src/captagent/init/deb/debian/captagent.init

Just copy the init file to /etc/init.d/captagent and change the permisions:

  cp /usr/src/captagent/init/deb/debian/captagent.init /etc/init.d/captagent
  chmod 755 /etc/init.d/captagent 

then edit the file updating the $DAEMON and $CFGFILE values:

DAEMON=/usr/local/captagent/bin/captagent CFGFILE=/usr/local/captagent/etc/captagent/captagent.xml


You need also setup a configuration file in the /etc/default/ directory. This file can be found at:

cp /usr/src/captagent/init/deb/debian/captagent.default /etc/default/captagent


Once installed and before using, edit the default file to reflect your captagent path:

RUN_CAPTAGENT=yes CFGFILE=/usr/local/captagent/etc/captagent/captagent.xml