diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2011-06-26 09:21:27 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2011-06-26 09:21:27 +0800 |
commit | 3016219c04ab8545ccc3f4ca66891d253d544f38 (patch) | |
tree | a4ac6ded92a818a1e953b8c70d40903771a67745 | |
parent | 9b553ddd570eecbe5d8491c1b9efd45d0a8d4627 (diff) |
samba: mkdir /var/run/samba before running the daemon
-rw-r--r-- | nmbd.service | 1 | ||||
-rw-r--r-- | smbd.service | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/nmbd.service b/nmbd.service index 02446a8..c0a0b52 100644 --- a/nmbd.service +++ b/nmbd.service @@ -8,6 +8,7 @@ Before=samba.target [Service] Environment=TMP="" Environment=TMPDIR="" +ExecStartPre=-mkdir -p /var/run/samba ExecStart=/usr/sbin/nmbd -F ExecReload=/bin/kill -HUP $MAINPID diff --git a/smbd.service b/smbd.service index 7bd84d1..c367345 100644 --- a/smbd.service +++ b/smbd.service @@ -7,6 +7,7 @@ Before=samba.target [Service] Environment=TMP="" +ExecStartPre=-mkdir -p /var/run/samba ExecStart=/usr/sbin/smbd -F ExecReload=/bin/kill -HUP $MAINPID |