From d0fbe16a6b1c4a98279d310a414582bba29f8a3a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 2 Apr 2012 14:23:27 +0200 Subject: systemd: Add samba service file. Autobuild-User: Andreas Schneider Autobuild-Date: Wed Apr 4 18:04:09 CEST 2012 on sn-devel-104 --- packaging/systemd/samba.service | 13 +++++++++++++ packaging/systemd/samba.sysconfig | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 packaging/systemd/samba.service (limited to 'packaging') diff --git a/packaging/systemd/samba.service b/packaging/systemd/samba.service new file mode 100644 index 0000000000..d2db18c362 --- /dev/null +++ b/packaging/systemd/samba.service @@ -0,0 +1,13 @@ +[Unit] +Description=Samba AD Daemon +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/run/samba.pid +LimitNOFILE=16384 +EnvironmentFile=-/etc/sysconfig/samba +ExecStart=/usr/sbin/samba $SAMBAOPTIONS + +[Install] +WantedBy=multi-user.target diff --git a/packaging/systemd/samba.sysconfig b/packaging/systemd/samba.sysconfig index 5950b1347f..7607426486 100644 --- a/packaging/systemd/samba.sysconfig +++ b/packaging/systemd/samba.sysconfig @@ -2,6 +2,10 @@ ## Description: Samba process options ## Type: string ## Default: "" +## ServiceRestart: samba +SAMBAOPTIONS="" +## Type: string +## Default: "" ## ServiceRestart: smb SMBDOPTIONS="" ## Type: string -- cgit