Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: NickCritten on September 11, 2007, 03:13:35 PM

Title: Automatically start a service, that's not in Config DB
Post by: NickCritten 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
Title: Re: Automatically start a service, that's not in Config DB
Post by: Daniel B. 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