Am 28.07.2013 11:06, schrieb Kai Hendry:
> On 26 July 2013 04:17, Lennart Poettering <[email protected]> wrote:
>> We generally generate warnings about invalid lines and proceed. Aftre we
>> parsed everything we then do a couple of checks whether a unit still
>> makes sense with the stuff that was correctly parsed, and only if the
>> unit does't pass that check we will fail it.
> 
> I managed to see a "foobar.service lacks ExecStart setting. Refusing."
> if I put ExecStart under [Unit] but if I do something like put
> Description under [Service] I don't get a warning.
> 
> Maybe it's just me that finds it hard to know which stanzas belong
> under which heading

man systemd.unit
man systemd.service

look at a existing unit
/usr/lib/systemd/system/avahi-daemon.service as example
_________________________________________________________________

[Unit]
Description=Avahi mDNS/DNS-SD Stack
Requires=avahi-daemon.socket

[Service]
Type=dbus
BusName=org.freedesktop.Avahi
ExecStart=/usr/sbin/avahi-daemon -s
ExecReload=/usr/sbin/avahi-daemon -r
NotifyAccess=main


[Install]

WantedBy=multi-user.target
Also=avahi-daemon.socket
Alias=dbus-org.freedesktop.Avahi.service

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to