sys-auth/sssd: CoreOSify the service

There is no need to fork the daemon with systemd, so run in the
foreground for Type=simple.  This also writes logs to stderr by
default, so this service no longer needs a special /var/log path.
The syslog.target unit does not exist either, but SSSD can
can optionally query NSCD, so order it after nscd.service.
This commit is contained in:
David Michael 2017-03-10 18:48:28 -08:00
parent 821268f21e
commit e6690c468f
3 changed files with 2 additions and 8 deletions

View File

@ -1,15 +1,10 @@
[Unit] [Unit]
Description=System Security Services Daemon Description=System Security Services Daemon
# SSSD will not be started until syslog is After=nscd.service
After=syslog.target
[Service] [Service]
ExecStart=/usr/sbin/sssd -D -f ExecStart=/usr/sbin/sssd -i
# These two should be used with traditional UNIX forking daemons
# consult systemd.service(5) for more details
Type=forking
PIDFile=/run/sssd.pid PIDFile=/run/sssd.pid
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -4,4 +4,3 @@ d /var/lib/sss - root root - -
d /var/lib/sss/db 0700 root root - - d /var/lib/sss/db 0700 root root - -
d /var/lib/sss/pipes - root root - - d /var/lib/sss/pipes - root root - -
d /var/lib/sss/pipes/private 0700 root root - - d /var/lib/sss/pipes/private 0700 root root - -
d /var/log/sssd 0700 root root - -