title: Send a custom signal to curreng Golang process
body: <p>I'm creating a HTTP server using Go. And whenever I work on a database maintenance, I want the server to redirect all the traffic to "current working on maintenance" page. </p>
  
  <p>Currently, this is done by secret admin page (eg. <a href="http://myhome/secret" rel="nofollow noreferrer">http://myhome/secret</a>) but I'm wondering if this can be done with signal -similar to TERM signal, but temporarily redirect rather than actually terminate the process.</p>
  
  <p>Eg.</p>
  
  <pre><code>/home/myhome&gt; nohup startServer &amp;
  ... 
  /home/myhome&gt; changeMyServerStatus "maintenance"
  </code></pre>
  
  <p>I assume there will be two executable.. "startServer" and "changeMyServerStatus"</p>
  
  <p>So, this is similar to a service. (like reload) But, is this possible? If so, can you give me some hint please?</p>
  
  <p>Thank you</p>