<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Aug 14, 2016 at 5:30 PM, Mantas Mikulėnas <span dir="ltr"><<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Sun, Aug 14, 2016 at 3:29 PM, Tom Browder <span dir="ltr"><<a href="mailto:tom.browder@gmail.com" target="_blank">tom.browder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to get comfortable with systemd on Debian 8 but am very<br>
confused by the complex documentation.<br>
<br>
I am a simple man with a simple need to be able to modiify startup<br>
scripts for several packages I build from source which currently are:<br>
<br>
+ apache (httpd)<br>
+ postgresql<br>
+ bind9<br>
<br>
I'm not sure of a few things under systemd:<br>
<br>
1. What exactly is the command to start or stop a service (consider<br>
the three above)?<br></blockquote><div><br></div></span><div>With native systemd .services, it's taken from the unit's ExecStart= and ExecStop= (the default for the latter is SIGTERM).</div><div><br></div><div>SysV-compat services (see below) just run "/etc/init.d/httpd start", so everything works as before.</div><div><br></div><div>In either case, `systemctl status …` shows the command that was used.</div></div></div></div></blockquote><div><br></div><div>The above was thinking you were asking about what command systemd *itself* uses to run the daemon... The user-facing commands are `systemctl start httpd` or `service httpd start` (both should do the same thing).</div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>