From 7d7ba3ba40895090d9bd791f210f89c5d5d2582e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 27 Oct 2011 17:11:19 +0200 Subject: Add systemd service files. Autobuild-User: Andreas Schneider Autobuild-Date: Fri Oct 28 11:34:27 CEST 2011 on sn-devel-104 --- packaging/systemd/nmb.service | 12 ++++++++++++ packaging/systemd/samba.sysconfig | 6 ++++++ packaging/systemd/smb.service | 13 +++++++++++++ packaging/systemd/winbind.service | 13 +++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 packaging/systemd/nmb.service create mode 100644 packaging/systemd/samba.sysconfig create mode 100644 packaging/systemd/smb.service create mode 100644 packaging/systemd/winbind.service diff --git a/packaging/systemd/nmb.service b/packaging/systemd/nmb.service new file mode 100644 index 0000000000..a2ecd22d59 --- /dev/null +++ b/packaging/systemd/nmb.service @@ -0,0 +1,12 @@ +[Unit] +Description=Samba NMB Daemon +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/run/nmbd.pid +EnvironmentFile=-/etc/sysconfig/samba +ExecStart=/usr/sbin/nmbd $NMBDOPTIONS + +[Install] +WantedBy=multi-user.target diff --git a/packaging/systemd/samba.sysconfig b/packaging/systemd/samba.sysconfig new file mode 100644 index 0000000000..944b72fcc2 --- /dev/null +++ b/packaging/systemd/samba.sysconfig @@ -0,0 +1,6 @@ +# Options to smbd +SMBDOPTIONS="-D" +# Options to nmbd +NMBDOPTIONS="-D" +# Options for winbindd +WINBINDOPTIONS="" diff --git a/packaging/systemd/smb.service b/packaging/systemd/smb.service new file mode 100644 index 0000000000..7d765db83c --- /dev/null +++ b/packaging/systemd/smb.service @@ -0,0 +1,13 @@ +[Unit] +Description=Samba SMB Daemon +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/run/smbd.pid +LimitNOFILE=16384 +EnvironmentFile=-/etc/sysconfig/samba +ExecStart=/usr/sbin/smbd $SMBDOPTIONS + +[Install] +WantedBy=multi-user.target diff --git a/packaging/systemd/winbind.service b/packaging/systemd/winbind.service new file mode 100644 index 0000000000..91f9112a35 --- /dev/null +++ b/packaging/systemd/winbind.service @@ -0,0 +1,13 @@ +[Unit] +Description=Samba Winbind Daemon +Requires=smb.service nmb.service +After=syslog.target network.target smb.service nmb.service + +[Service] +Type=forking +PIDFile=/run/winbindd.pid +EnvironmentFile=-/etc/sysconfig/samba +ExecStart=/usr/sbin/winbindd "$WINBINDOPTIONS" + +[Install] +WantedBy=multi-user.target -- cgit