[systemd-devel] Systemd Questions

Mantas Mikulėnas grawity at gmail.com
Sun Aug 14 14:32:11 UTC 2016


On Sun, Aug 14, 2016 at 5:30 PM, Mantas Mikulėnas <grawity at gmail.com> wrote:

> On Sun, Aug 14, 2016 at 3:29 PM, Tom Browder <tom.browder at gmail.com>
> wrote:
>
>> I am trying to get comfortable with systemd on Debian 8 but am very
>> confused by the complex documentation.
>>
>> I am a simple man with a simple need to be able to modiify startup
>> scripts for several packages I build from source which currently are:
>>
>> + apache (httpd)
>> + postgresql
>> + bind9
>>
>> I'm not sure of a few things under systemd:
>>
>> 1. What exactly is the command to start or stop a service (consider
>> the three above)?
>>
>
> With native systemd .services, it's taken from the unit's ExecStart= and
> ExecStop= (the default for the latter is SIGTERM).
>
> SysV-compat services (see below) just run "/etc/init.d/httpd start", so
> everything works as before.
>
> In either case, `systemctl status …` shows the command that was used.
>

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).

-- 
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160814/949b1c35/attachment.html>


More information about the systemd-devel mailing list