Koozali.org: home of the SME Server

Automatically start a service, that's not in Config DB

Offline NickCritten

  • *
  • 245
  • +0/-0
Automatically start a service, that's not in Config DB
« on: September 11, 2007, 03:13:35 PM »
Hi All,

I would like to have the snmptrapd service start at boot time, but as it doesn't have an entry in the config DB I've no idea how to do this.

I've already created /etc/sysconfig/snmptrapd.options with my preferred arguments, and set up everything else I need with template fragments.

The service starts absolutely fine if I manually issue a
Code: [Select]
/etc/rc.d/init.d/snmptrapd start However I need for the service to start when the machine reboots.

Can anyone please advise how to do this within the SME Standards?

Many thanks,

Nick
...
Nick

"No good deed goes unpunished." :-x...

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Automatically start a service, that's not in Config DB
« Reply #1 on: September 11, 2007, 03:56:03 PM »
You have the answer in the dev guide:

db configuration set snmptrapd service status enabled
cd /etc/rc7.d
ln -s ../init.d/e-smith-services ./S80snmptrapd

For example
C'est la fin du monde !!! :lol: