Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: gbentley on May 30, 2013, 10:02:30 AM

Title: Simple way to run one time task at startup?
Post by: gbentley on May 30, 2013, 10:02:30 AM
I used to use a symlink for my centralised kaspersky signatures on SME - now, using 'mount --bind' I need this to run at startup and for life of me can't get 'mount --bind' to work in fstab? Maybe thats two questions :)
Title: Re: Simple way to run one time task at startup?
Post by: Stefano on May 30, 2013, 11:58:01 AM
could you please be more verbose and explain your problem and not your solution?

thank you
Title: Re: Simple way to run one time task at startup?
Post by: mmccarn on May 30, 2013, 02:16:58 PM
I run commands at startup by adding them to the 'local' event as described here:
http://wiki.contribs.org/Mount_Network_Shares#Modify_the_SME_local_event
Title: Re: Simple way to run one time task at startup?
Post by: gbentley on May 30, 2013, 04:47:48 PM
tnx mmccarn - looks like just what I need :)
Title: Re: Simple way to run one time task at startup?
Post by: janet on May 30, 2013, 06:24:46 PM
gbentley

There is also a simple example of adding a script to
/etc/rc.d/rc.local
here
http://wiki.contribs.org/Wondershaper

This will run at startup
Title: Re: Simple way to run one time task at startup?
Post by: gbentley on June 03, 2013, 10:25:17 AM
Thanks Janet - that worked!

 :grin:
Title: Re: Simple way to run one time task at startup?
Post by: mmccarn on June 16, 2013, 02:26:36 PM
I've also discovered that an entry in crontab beginning with "@reboot" allows you to run a command once after boot.
Title: Re: Simple way to run one time task at startup?
Post by: jonnblaze on July 30, 2013, 07:35:41 AM
thank you for your help. you solve the problem and dicuss briefly