[systemd-devel] /etc/systemd/system/darkice.service

Reindl Harald h.reindl at thelounge.net
Sun Jul 28 02:19:21 PDT 2013



Am 28.07.2013 11:06, schrieb Kai Hendry:
> On 26 July 2013 04:17, Lennart Poettering <lennart at poettering.net> 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

-------------- 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/20130728/7078168f/attachment.pgp>


More information about the systemd-devel mailing list