Subject: [alpine-devel] samba init piddir error fix

From: Uroš Kolar <[email-masked]>
Date: Sun, 28 Apr 2013 16:42:19 +0200

Hi!

I have noticed samba does not startup properly if /var/run is on tmpfs. The problem is that the init script does not find the dir /var/run/samba to put the pidfile into. A fix is attached.

Greetings,
-uros

---

From: Uroš Kolar <[email-masked]>
Date: Sun, 28 Apr 2013 19:19:24 +0200

hm, i guess it's better to move the install line out of for loop …

Greetings,
-uros

On Apr 28, 2013, at 4:42 PM, Uroš Kolar <[email-masked]> wrote:

> <samba.diff>

---

From: Natanael Copa <[email-masked]>
Date: Mon, 29 Apr 2013 15:12:22 +0200

On Sun, 28 Apr 2013 19:19:24 +0200
Uroš Kolar <[email-masked]> wrote:

>  start() {
> +	install -o root -g root -m 755 -d ${PIDDIR}
>  	for i in $daemon_list; do
>  		ebegin "Starting $i"
>  		start_$i

could you please try if this works instead:

 start() {
+       checkpath --directory --owner root:root \
+               --mode 755 "$PIDDIR"
        for i in $daemon_list; do
                ebegin "Starting $i"
                start_$i

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---