initial commit of file from CVS for e-smith-samba on Sat Mar 23 16:28:38 AEDT 2024
This commit is contained in:
10
root/usr/lib/systemd/system/nmb.service.d/50koozali.conf
Normal file
10
root/usr/lib/systemd/system/nmb.service.d/50koozali.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
# disabled as conlfict with KOOZALI SME SERVER samba
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=
|
||||
ExecStart=/bin/false
|
||||
ExecReload=
|
||||
|
||||
[Install]
|
||||
WantedBy=
|
||||
|
23
root/usr/lib/systemd/system/nmbd.service
Normal file
23
root/usr/lib/systemd/system/nmbd.service
Normal file
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
# When systemd stops or restarts the smb.service, the action is propagated to this unit
|
||||
PartOf=smb.service
|
||||
# Start this unit after the smb.service start
|
||||
After=smb.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
PIDFile=/run/nmbd.pid
|
||||
EnvironmentFile=-/etc/sysconfig/samba
|
||||
ExecStartPre=/sbin/e-smith/service-status nmbd
|
||||
ExecStartPre=-/sbin/e-smith/expand-template /etc/samba/smb.conf
|
||||
ExecStartPre=-/sbin/e-smith/expand-template /etc/samba/smbusers
|
||||
ExecStartPre=/sbin/e-smith/systemd/nmbd-prepare
|
||||
ExecStart=/usr/sbin/nmbd --foreground --no-process-group $NMBDOPTIONS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
LimitCORE=infinity
|
||||
Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target
|
25
root/usr/lib/systemd/system/smb.service.d/50koozali.conf
Normal file
25
root/usr/lib/systemd/system/smb.service.d/50koozali.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=Samba SMB Daemon global service for Koozali SME Server
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
#NotifyAccess=
|
||||
#PIDFile=
|
||||
#LimitNOFILE=
|
||||
#EnvironmentFile=
|
||||
ExecStartPre=/sbin/e-smith/service-status smb
|
||||
ExecStartPre=-/sbin/e-smith/expand-template /etc/samba/smb.conf
|
||||
ExecStartPre=-/sbin/e-smith/expand-template /etc/samba/smbusers
|
||||
ExecStart=
|
||||
# Execute a dummy program
|
||||
ExecStart=/bin/true
|
||||
|
||||
ExecReload=
|
||||
#LimitCORE=
|
||||
# This service shall be considered active after start
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=
|
||||
WantedBy=sme-server.target
|
||||
|
28
root/usr/lib/systemd/system/smbd.service
Normal file
28
root/usr/lib/systemd/system/smbd.service
Normal file
@@ -0,0 +1,28 @@
|
||||
[Unit]
|
||||
Description=Samba SMB Daemon
|
||||
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
|
||||
Wants=network-online.target
|
||||
After=network.target network-online.target nmb.service winbind.service
|
||||
# When systemd stops or restarts the smb.service, the action is propagated to this unit
|
||||
PartOf=smb.service
|
||||
# Start this unit after the smb.service start
|
||||
After=smb.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
PIDFile=/run/smbd.pid
|
||||
LimitNOFILE=16384
|
||||
EnvironmentFile=-/etc/sysconfig/samba
|
||||
ExecStartPre=/sbin/e-smith/service-status smbd
|
||||
ExecStartPre=-/sbin/e-smith/expand-template /etc/samba/smb.conf
|
||||
ExecStartPre=-/sbin/e-smith/expand-template /etc/samba/smbusers
|
||||
ExecStartPre=/sbin/e-smith/systemd/smbd-prepare
|
||||
ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
LimitCORE=infinity
|
||||
Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target
|
Reference in New Issue
Block a user