<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/16584" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2009-02-01T20:21:01-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/16584</id>

		<entry>
		<author><name><![CDATA[dragu]]></name></author>
		<updated>2009-02-01T20:21:01-04:00</updated>

		<published>2009-02-01T20:21:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87202#p87202</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87202#p87202"/>
		<title type="html"><![CDATA[Autostart with init.d]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87202#p87202"><![CDATA[
Ehrm.. Yes that is ceartingly true that it would. How ever depending on the<br>timer and such dilemas it does not kick on right at the boot which is the<br>thing which i were looking to do. And also as i mentioned, i am not a big<br>fan over cron and tries to use it to a minimum.<br><br>No offence to those which like the solution for cron, it's just not my<br>cup of tea so to say. Anyhow guess will look it up to another direction<br>to find out if the things would work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10463">dragu</a> — Sun Feb 01, 2009 8:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[incith]]></name></author>
		<updated>2009-02-01T20:13:59-04:00</updated>

		<published>2009-02-01T20:13:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87201#p87201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87201#p87201"/>
		<title type="html"><![CDATA[Autostart with init.d]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87201#p87201"><![CDATA[
I'd have to agree with just using cron.  Set the timer to every minute if you must (I use 5 or 10 minute check).. your bot will start as soon as cron check runs, whether the machine is rebooted or not.<br><br>Just setup your botchk file and chmod +x it.  Then (from shell) run <em class="text-italics">crontab -e</em><div class="codebox"><p>Code: </p><pre><code># minute(0-59) hour(0-23) day(1-31) month(1-12) weekday(0-6,0=sun)*/15 * * * * /home/incith/eggdrop/botchk.visitant 2&gt;&amp;1</code></pre></div>Save &amp; close file.<br><br>Guess I use 15 minutes.  */1 would be every minute, etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6130">incith</a> — Sun Feb 01, 2009 8:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dragu]]></name></author>
		<updated>2009-02-01T19:34:23-04:00</updated>

		<published>2009-02-01T19:34:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87200#p87200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87200#p87200"/>
		<title type="html"><![CDATA[Autostart with init.d]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87200#p87200"><![CDATA[
Well i sure don't have anything against the crontab solution, how ever that<br>direction does not ensure that it starts directly when the machine is on.<br>Personly also i try to keep as few things as possible in the cron section if<br>there are other ways to solve it.<br><br>Ceartingly i can admit that it might seem alot as that there shouldn't be any<br>need to do it in another way.<br><br>How ever it were mostly only a thought to have a way that it would start in<br>direct and simple way after say a power outage or something like that.<br><br>Anyhow i will be looking into this a bit more and if i'd might find a solution<br>where actually it would work. But suggestions and advice would always be<br>most welcomed. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10463">dragu</a> — Sun Feb 01, 2009 7:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Callisto]]></name></author>
		<updated>2009-02-01T14:35:02-04:00</updated>

		<published>2009-02-01T14:35:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87195#p87195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87195#p87195"/>
		<title type="html"><![CDATA[Autostart with init.d]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87195#p87195"><![CDATA[
Hi, just wondering what is wrong with a good old fashioned crontab?<br>I dont mean to be picky  or distrespectful, however isnt your shell script kinda re-inventing the wheel?<br>The only advantage I can see is the bot starts as soon as the box has started. <br>Regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6064">Callisto</a> — Sun Feb 01, 2009 2:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dragu]]></name></author>
		<updated>2009-01-31T21:00:16-04:00</updated>

		<published>2009-01-31T21:00:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87185#p87185</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87185#p87185"/>
		<title type="html"><![CDATA[Autostart with init.d]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87185#p87185"><![CDATA[
Aight were just about to head for bed when i got the urge to do something<br>with the eggdrop bot that is running on my server. After having updated the<br>bot software to the latest version i got the urge to add it to the init.d so that<br>it would automaticly start when the machine was activated.<br><br>I understand if this might not be the right place for something like this but<br>would appriciate any comments about it so i know if it might work as the<br>idea was in my head for it to do.<br><div class="codebox"><p>Code: </p><pre><code>#!/bin/sh## Starts eggdrop script## chkconfig: 345 94 06# description: eggdrop is the world's most popular Open Source bot, designed under GNU license# more information can be found at http://www.eggheads.orgMYDESC="eggdrop"MYPATH=/home/user/eggdropMYNAME=userMYLOCK=$MYNAMEDAEMON=$MYPATH/RunEggdrop.shMYPIDF=/var/run/$MYNAME.pidMYCMND="$MYPATH/RunEggdrop.sh"# Source function library.. /etc/rc.d/init.d/functions# Make sure the daemon directory is in the front of the path listPATH=$MYPATH:$PATH# See how we were called.case "$1" in  start)        # Change to package directory so config paths can be relative        cd $MYPATH || \          { echo "$0: Can't cd to $MYPATH" ; exit 1 ; }        # Make sure the daemon exists        [ -f $DAEMON ] || \          { echo "$0: Daemon not found: $DAEMON" ; exit 1 ; }        # See if we are already running        # Note: kill -0 _PID_        #       returns true if process _PID_ is alive and accepting signals.        [ -f $MYPIDF ] &amp;&amp; kill -0 `cat $MYPIDF` &amp;&amp; \          { echo "$0: $MYPIDF exists and process is running" ; exit 1 ; }        echo -n "Starting $MYDESC: "        echo "$MYNAME "        su -l -c "$MYCMND" user | tee $MYPIDF        tail -1 $MYPIDF | cut -d'=' -f2 | cut -d' ' -f1 &gt; $MYPIDF        chown user.user $MYPIDF        touch /var/lock/subsys/$MYLOCK        ;;  stop)        echo -n "Shutting down $MYDESC: "        echo -n "$MYNAME "        killproc eggdrop        rm -f $MYPIDF        echo        rm -f /var/lock/subsys/$MYLOCK        ;;  status)        status $MYNAME        ;;  restart)        $0 stop        sleep 1        $0 start        ;;  *)        echo "Usage: $0 {start|stop|status|restart}"        exit 1esacexit 0</code></pre></div>The sh script which it calls to start the eggdrop is just a container of:<div class="codebox"><p>Code: </p><pre><code>cd /home/user/eggdrop./eggdrop config.conf</code></pre></div>Any suggestions or comments would be most welcomed.<br>But now i'm going to let my brain rest <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> and sorry if i posted this in<br>the wrong section of the forum.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10463">dragu</a> — Sat Jan 31, 2009 9:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
