I found it
here. Very much what bgstack15 suggested.
Thanks to all who showed interest. I'll post the text of the solution I found below.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Samba (smb and nmb services) cannot be started, because /var/run/samba
directory does not exist.
Reproducible: Always
Steps to Reproduce:
1. systemctl start smb.service
Actual Results:
systemd[1]: Starting Samba SMB Daemon...
smbd[2173]: [2014/02/02 19:52:47.463767, 0]
./source3/smbd/server.c:1278(main)
smbd[2173]: standard input is not a socket, assuming -D option
smbd[2204]: [2014/02/02 19:52:47.464517, 0]
-../lib/util/pidfile.c:117(pidfile_create)
smbd[2204]: ERROR: can't open /var/run/samba/smbd.pid: Error was No such file
or directory
systemd[1]: PID file /run/samba/smbd.pid not /readable (yet?) after start.
systemd[1]: Failed to start Samba SMB Daemon.
systemd[1]: Unit smb.service entered failed state.
Expected Results:
It should just start
If I
add the following line to /usr/lib/systemd/system/smb.service, smb can be
started:
ExecStartPre=/usr/bin/mkdir -p /var/run/samba
Same for nmb.service