title: systemd timer to start .sh script daily at 2 different hours
body: <p>I have a <em>bourne shell script</em> (at my NAS) that handles the <em>ffmpeg</em> recording of all my <em>ipcams</em>. For switching the record time (etc) of some cams, that sh script should be restarted daily at 2 different hours (<code>07:00am</code> and <code>10:00pm</code>), which is configured in the bash script and works well.</p>
  
  <ol>
  <li><p>To start the sh script, I make use of <em>systemd</em> with the following .service file:</p>
  
  <p><code>[Unit]
  Description=record ipcams
  After=tmp.mount network.target
  Requires=network.target
  RequiresMountsFor=/media/USB2</code></p>
  
  <p><code>[Service]
  Type=forking
  PIDFile=/var/run/cams_record.pid
  ExecStart=/bin/bash -c '/media/USB2/movie/cams/cams_record.sh'
  TimeoutStopSec=1
  Restart=always</code></p>
  
  <p><code>[Install]
  WantedBy=multi-user.target</code></p></li>
  </ol>
  
  <p>So far so good. Now what I actually want, is to restart that script file daily at <code>07:00am</code> and <code>10:00pm</code> (or restart the previous mentioned .service at those two times) thus I thought to make use of a <em>systemd timer</em>. I created such a timer for <code>07:00 am</code> (with the option: <code>OnCalender=07:00</code>)</p>
  
  <p>Question is: having a (permanently running) service, how do I restart that service (and thus the script file) at <code>07:00am</code> and <code>22:00pm</code>. I can of course make use of 2 systemd timers (1 for <code>07:00am</code> and 1 for <code>10:00pm</code>), but is there a possibility to combine these; i.e. using 1 systemd timer for both times.</p>