<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=InitScript</id>
	<title>InitScript - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=InitScript"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=InitScript&amp;action=history"/>
	<updated>2026-08-22T21:10:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=InitScript&amp;diff=1661&amp;oldid=prev</id>
		<title>Admin: 5 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=InitScript&amp;diff=1661&amp;oldid=prev"/>
		<updated>2016-04-06T20:11:25Z</updated>

		<summary type="html">&lt;p&gt;5 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;    #!/bin/sh&lt;br /&gt;
    &lt;br /&gt;
    RTPATH=/path/to/rt RTUSER=rt FCGI_SOCKET_PATH=$RTPATH/var/appSocket&lt;br /&gt;
    &lt;br /&gt;
    case $1 in&lt;br /&gt;
      start)&lt;br /&gt;
          echo -n &amp;quot;Starting RT: mason_handler.fcgi&amp;quot;&lt;br /&gt;
          cd $RTPATH&lt;br /&gt;
          export FCGI_SOCKET_PATH&lt;br /&gt;
          su $RTUSER -c perl bin/mason_handler.fcgi &amp;amp;amp;&lt;br /&gt;
          echo&lt;br /&gt;
          ;;&lt;br /&gt;
      &lt;br /&gt;
      stop)&lt;br /&gt;
          echo -n &amp;quot;Stopping RT: &amp;quot;&lt;br /&gt;
          PIDS=`ps axww | awk &amp;#039;/[m]ason_handler.fcgi/ { print $1}&amp;#039;`&lt;br /&gt;
          if [ -n &amp;quot;$PIDS&amp;quot; ]&lt;br /&gt;
          then&lt;br /&gt;
              echo -n kill -TERM $PIDS&lt;br /&gt;
              kill $PIDS&lt;br /&gt;
              echo&lt;br /&gt;
          else&lt;br /&gt;
              echo RT not running&lt;br /&gt;
          fi&lt;br /&gt;
          ;;&lt;br /&gt;
      &lt;br /&gt;
      restart|force-reload)&lt;br /&gt;
          $0 stop&lt;br /&gt;
          $0 start&lt;br /&gt;
          ;;&lt;br /&gt;
      &lt;br /&gt;
      *)&lt;br /&gt;
          echo &amp;quot;Usage: /etc/init.d/rt { stop | start | restart }&amp;quot;&lt;br /&gt;
          exit 1&lt;br /&gt;
          ;;&lt;br /&gt;
    esac&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=InitScript&amp;diff=1659&amp;oldid=prev</id>
		<title>75.147.59.54 at 14:06, 22 August 2011</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=InitScript&amp;diff=1659&amp;oldid=prev"/>
		<updated>2011-08-22T14:06:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:06, 22 August 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     #!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     #!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     RTPATH=/path/to/rt RTUSER=rt FCGI_SOCKET_PATH=$RTPATH/var/appSocket&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     RTPATH=/path/to/rt RTUSER=rt FCGI_SOCKET_PATH=$RTPATH/var/appSocket&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     case $1 in&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     case $1 in&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       start)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       start)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-1658:rev-1659:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>75.147.59.54</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=InitScript&amp;diff=1658&amp;oldid=prev</id>
		<title>75.147.59.54: Ident for code formatting</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=InitScript&amp;diff=1658&amp;oldid=prev"/>
		<updated>2011-08-22T14:05:50Z</updated>

		<summary type="html">&lt;p&gt;Ident for code formatting&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;    #!/bin/sh&lt;br /&gt;
&lt;br /&gt;
    RTPATH=/path/to/rt RTUSER=rt FCGI_SOCKET_PATH=$RTPATH/var/appSocket&lt;br /&gt;
&lt;br /&gt;
    case $1 in&lt;br /&gt;
      start)&lt;br /&gt;
          echo -n &amp;quot;Starting RT: mason_handler.fcgi&amp;quot;&lt;br /&gt;
          cd $RTPATH&lt;br /&gt;
          export FCGI_SOCKET_PATH&lt;br /&gt;
          su $RTUSER -c perl bin/mason_handler.fcgi &amp;amp;amp;&lt;br /&gt;
          echo&lt;br /&gt;
          ;;&lt;br /&gt;
      &lt;br /&gt;
      stop)&lt;br /&gt;
          echo -n &amp;quot;Stopping RT: &amp;quot;&lt;br /&gt;
          PIDS=`ps axww | awk &amp;#039;/[m]ason_handler.fcgi/ { print $1}&amp;#039;`&lt;br /&gt;
          if [ -n &amp;quot;$PIDS&amp;quot; ]&lt;br /&gt;
          then&lt;br /&gt;
              echo -n kill -TERM $PIDS&lt;br /&gt;
              kill $PIDS&lt;br /&gt;
              echo&lt;br /&gt;
          else&lt;br /&gt;
              echo RT not running&lt;br /&gt;
          fi&lt;br /&gt;
          ;;&lt;br /&gt;
      &lt;br /&gt;
      restart|force-reload)&lt;br /&gt;
          $0 stop&lt;br /&gt;
          $0 start&lt;br /&gt;
          ;;&lt;br /&gt;
      &lt;br /&gt;
      *)&lt;br /&gt;
          echo &amp;quot;Usage: /etc/init.d/rt { stop | start | restart }&amp;quot;&lt;br /&gt;
          exit 1&lt;br /&gt;
          ;;&lt;br /&gt;
    esac&lt;/div&gt;</summary>
		<author><name>75.147.59.54</name></author>
	</entry>
</feed>