mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
samba: remove pids on start
This commit is contained in:
@@ -9,6 +9,7 @@ ConditionPathExists=/run/samba/smb.conf
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/nmbd-smb.conf.pid
|
||||
ExecStartPre=/bin/rm -f /var/run/nmbd-smb.conf.pid
|
||||
ExecStart=/usr/bin/nmbd --configfile=/run/samba/smb.conf
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ ConditionPathExists=/run/samba/smb.conf
|
||||
Type=forking
|
||||
PIDFile=/var/run/smbd-smb.conf.pid
|
||||
LimitNOFILE=16384
|
||||
ExecStartPre=/bin/rm -f /var/run/smbd-smb.conf.pid
|
||||
ExecStart=/usr/bin/smbd --configfile=/run/samba/smb.conf
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
|
||||
Reference in New Issue
Block a user