Re: Issue creating systemd service files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 05.03.13 19:48, David Highley (dhighley@xxxxxxxxxxxxxxxxxxxxxxx) wrote:

> [Unit]
> Description=sshdfilter Daemon
> Documentation=file://usr/share/doc/sshdfilter-1.5.7/INSTALL.Fedora
> DefaultDependencies=no

DefaultDependencies=no is unlikely what you want here. That's an option
for early-boot stuff, not for normal services.

> 
> [Service]
> Type=forking
> PIDFile=/var/run/sshdfilter.SSHD.pid
> ExecStart=/sbin/sshdfilter
> NotifyAccess=all

This only makes sense if your daemon use sd_notify() from its C
code. Does it really?

> 
> [Install]
> WantedBy=multi-user.target
> 
> ============ sshdfilter.socket ===================
> 
> [Unit]
> Description=sshdfilter Named Pipe
> Documentation=file:///usr/share/doc/sshdfilter-1.5.7/INSTALL.Fedora
> DefaultDependencies=no

Same as above.

> After=syslog.target

Redundant, it's implied.

> [Socket]
> ListenFIFO=/var/run/sshdfilter.fifo
> SocketMode=0644

This suggests your service is actually socket-activatable via this
FIFO. Is it really?

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux