[systemd-devel] My last post went as "unprocessed"

Reindl Harald h.reindl at thelounge.net
Thu Jul 11 13:59:41 PDT 2013



Am 11.07.2013 22:36, schrieb David Lambert:
> Thanks for your quick reply. I also notice a "-" preceding the target for ExecStart target. How does this work and
> where is it documented. Again very difficult to search :-[

the command is allowed to fail without failing the service
it's common for EnvironemntFiles which are used if present
and ignored if not

in case of "sshdgenkeys.service" the way to go because
the kyes must be generated at the first start but
*must not* be overwritten at any later time

> [Unit]
> Description=OpenSSH Per-Connection Daemon
> After=sshdgenkeys.service
> 
> [Service]
> ExecStart=-/usr/sbin/sshd -i
> ExecReload=/bin/kill -HUP $MAINPID
> StandardInput=socket
> StandardError=syslog

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130711/83b8b8a4/attachment.pgp>


More information about the systemd-devel mailing list