Koozali.org: home of the SME Server

How do I start an app after a reboot?

CKConsulting

How do I start an app after a reboot?
« on: April 18, 2007, 08:19:43 PM »
I'm trying to start zabbix-agentd automatically after a reboot.

I can start the service with
Code: [Select]
/etc/init.d/zabbix-agentd start
and all works fine.

I tried editing the file /etc/rc.d/rc.local with following but it did not work.
Code: [Select]
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/etc/init.d/zabbix-agentd start


Thanks
Rick

Offline byte

  • *
  • 2,183
  • +2/-0
Re: How do I start an app after a reboot?
« Reply #1 on: April 18, 2007, 09:57:49 PM »
Quote from: "CKConsulting"
I'm trying to start zabbix-agentd automatically after a reboot.


Have a look at this thread a few down from yours  :wink:

http://forums.contribs.org/index.php?topic=36665.0
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

CKConsulting

How do I start an app after a reboot?
« Reply #2 on: April 18, 2007, 10:06:33 PM »
Thanks, but how do I know what to name the file??

Rick

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: How do I start an app after a reboot?
« Reply #3 on: April 18, 2007, 11:40:22 PM »
Quote from: "CKConsulting"
I'm trying to start zabbix-agentd automatically

Start by reading about run-level 7 and the e-smith-service wrapper in the Developer manual:

http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/x844.htm

Darrell