title: what is the best way to start a script in boot time on linux
body: <p>I want to start a script I have on when the system start and looking for the best way, my way is:</p>
  
  <ul>
  <li><p>vi /etc/systemd/system/myscript.service</p>
  
  <pre><code>[Service]
  Type=simple
  ExecStart=/usr/bin/myscript
  CPUSchedulingPolicy=rr
  CPUSchedulingPrioty=27
  [Install]
  WantedBy=multi-user.target graphical.target
  </code></pre></li>
  <li><p><code>systemctl daemon-reload; systemctl enable myscript; systemctl start rmyscript</code> </p></li>
  </ul>
  
  <p>it's working good but just wondered if there another and better way.</p>