diff options
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | src/sysv/systemd/sssd.service.in | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9405de14..7aba8bd1 100644 --- a/configure.ac +++ b/configure.ac @@ -177,6 +177,7 @@ abs_build_dir=`pwd` AC_DEFINE_UNQUOTED([ABS_BUILD_DIR], ["$abs_build_dir"], [Absolute path to the build directory]) AC_SUBST([abs_builddir], $abs_build_dir) -AC_CONFIG_FILES([Makefile contrib/sssd.spec src/examples/rwtab src/doxy.config po/Makefile.in]) +AC_CONFIG_FILES([Makefile contrib/sssd.spec src/examples/rwtab src/doxy.config + src/sysv/systemd/sssd.service po/Makefile.in]) AC_OUTPUT diff --git a/src/sysv/systemd/sssd.service.in b/src/sysv/systemd/sssd.service.in new file mode 100644 index 00000000..d42a08b1 --- /dev/null +++ b/src/sysv/systemd/sssd.service.in @@ -0,0 +1,16 @@ +[Unit] +Description=System Security Services Daemon +# If dbus crashes or is stopped, then SSSD will be stopped, too +Requires=dbus.socket +# SSSD will not be started until syslog is +After=syslog.target + +[Service] +ExecStart=@sbindir@/sssd -D -f +# These two should be used with traditional UNIX forking daemons +# consult systemd.service(5) for more details +Type=forking +PIDFile=@localstatedir@/run/sssd.pid + +[Install] +WantedBy=multi-user.target |