<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to create a trigger]]></title><description><![CDATA[<p dir="auto">I'm wanting to use this to restart mysqld using ifttt on a server that does NOT have a GUI.</p>
<p dir="auto">All the docs I'm reviewing state to launch a GUI to create the command.<br />
Nothing like that in the TriggerCMD interface.</p>
<p dir="auto">Take a look at this AI generated result from Google Search:<br />
<a href="https://www.google.com/search?q=how+to+trigger+a+mysql+restart+on+ubuntu+using+ifttt&amp;oq=how+to+trigger+a+mysql+restart+on+ubuntu+using+ifttt&amp;gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQLhhA0gEJMjIwMzdqMGoxqAIAsAIA&amp;sourceid=chrome&amp;ie=UTF-8" rel="nofollow ugc">https://www.google.com/search?q=how+to+trigger+a+mysql+restart+on+ubuntu+using+ifttt&amp;oq=how+to+trigger+a+mysql+restart+on+ubuntu+using+ifttt&amp;gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQLhhA0gEJMjIwMzdqMGoxqAIAsAIA&amp;sourceid=chrome&amp;ie=UTF-8</a></p>
]]></description><link>https://www.triggercmd.com/forum/topic/3235/how-to-create-a-trigger</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 12:51:46 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/3235.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Apr 2025 12:57:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to create a trigger on Sun, 13 Apr 2025 17:31:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/russ" aria-label="Profile: Russ">@<bdi>Russ</bdi></a><br />
Perfect!  Thanks for your help!</p>
]]></description><link>https://www.triggercmd.com/forum/post/8547</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8547</guid><dc:creator><![CDATA[gigaboy]]></dc:creator><pubDate>Sun, 13 Apr 2025 17:31:57 GMT</pubDate></item><item><title><![CDATA[Reply to How to create a trigger on Sat, 12 Apr 2025 21:34:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/gigaboy" aria-label="Profile: gigaboy">@<bdi>gigaboy</bdi></a>, thanks for sharing that link.  I'm loving the fact that Google gave you that answer - to use TRIGGERcmd via IFTTT.</p>
<p dir="auto">If your server doesn't have a GUI, you'll have to edit your ~/.TRIGGERcmdData/commands.json file manually, using a text editor like vi (aka vim) or pico, nano etc.</p>
<p dir="auto">On Linux, your default ~/.TRIGGERcmdData/commands.json file includes the first 5 commands.  I added the 6th command you could use to restart mysql, like Google says.</p>
<pre><code>[
  {"trigger":"Reboot","command":"shutdown -r","ground":"background","voice":"reboot","allowParams": "false"},
  {"trigger":"Gnome Editor","command":"gedit","ground":"foreground","voice":"notepad","allowParams": "false"},
  {"trigger":"Calculator","command":"gnome-calculator","ground":"foreground","voice":"calculator","allowParams": "false"},
  {"trigger":"yum update","command":"yum -y update","ground":"background","voice":"yum update","allowParams": "false"},
  {"trigger":"apt update","command":"apt-get -y update","ground":"background","voice":"update","allowParams": "false"},
  {
    "trigger": "Restart MySQL",
    "command": "sudo systemctl restart mysql",
    "offCommand": "",
    "ground": "background",
    "voice": "restart",
    "voiceReply": "",
    "allowParams": "false"
  }
]
</code></pre>
<p dir="auto">Notice I made "ground" = "background" because without a GUI, you probably installed the background agent (with <a href="http://installdaemon.sh" rel="nofollow ugc">installdaemon.sh</a>) which runs the TRIGGERcmd agent in background mode as service.</p>
]]></description><link>https://www.triggercmd.com/forum/post/8546</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8546</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 12 Apr 2025 21:34:33 GMT</pubDate></item></channel></rss>