<?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/21465" />

	<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>2024-03-08T06:32:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[fusionx]]></name></author>
		<updated>2024-03-08T06:32:48-04:00</updated>

		<published>2024-03-08T06:32:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112620#p112620</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112620#p112620"/>
		<title type="html"><![CDATA[Re: Timed full shutdown and restart]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112620#p112620"><![CDATA[
Thank you for responding! Unfortunately, it needs to be a full shutdown, not  a restart. Restarting though the bot doesn't resolve the issues. <br><br>"Die" works, with a manual start or waiting for cron to catch it, and kill -SIGTERM pid works. <br><br>I wonder if timer works with DIE.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12955">fusionx</a> — Fri Mar 08, 2024 6:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-03-08T05:41:05-04:00</updated>

		<published>2024-03-08T05:41:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112619#p112619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112619#p112619"/>
		<title type="html"><![CDATA[Re: Timed full shutdown and restart]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112619#p112619"><![CDATA[
You can try to automatically restart the eggdrop with the following script:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">bind cron - "17 */3 * * *" autorestartproc autorestart {min ho day mo dow} {   restart}</code></pre></div> <strong>script</strong> This will perform a .restart every time the hour is a multiple of 3 (0, 3, 6, 9, 12, 15, 18, 21) and the minutes are 17.<br><br>If the simple restart is not enough, replace it with a die and add a crontab check (have a look to scripts/botchk) with "* * * * *" planification<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Mar 08, 2024 5:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fusionx]]></name></author>
		<updated>2024-03-08T05:01:02-04:00</updated>

		<published>2024-03-08T05:01:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112618#p112618</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112618#p112618"/>
		<title type="html"><![CDATA[Timed full shutdown and restart]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112618#p112618"><![CDATA[
What's the best way to perform a timed FULL, graceful shutdown, then let the bot restart, either through cron or systemd?<br><br>I have a bot that gets really wonky after a couple hours, and I want to implement this while I'm trying to resolve the issue. I think I may have to rebuild my hosting environment, as some packages are out of sync, etc.. it's become messy over time as I try to install 3rd party packages that aren't available for my older OS. <br><br>Thanks in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12955">fusionx</a> — Fri Mar 08, 2024 5:01 am</p><hr />
]]></content>
	</entry>
	</feed>
