~alpine/devel

2 2

[alpine-devel] samba init piddir error fix

Uroš Kolar <host.uros@gmail.com>
Details
Message ID
<BA64A468-D45C-4A01-9D63-B76BA6AC9C8E@gmail.com>
Sender timestamp
1367160139
DKIM signature
missing
Download raw message
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

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

Uroš Kolar <host.uros@gmail.com>
Details
Message ID
<9E4C0664-F862-4A62-8DDC-C2AA66D60EBD@gmail.com>
In-Reply-To
<BA64A468-D45C-4A01-9D63-B76BA6AC9C8E@gmail.com> (view parent)
Sender timestamp
1367169564
DKIM signature
missing
Download raw message
hm, i guess it's better to move the install line out of for loop …

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

Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20130429151222.1b755ee2@ncopa-desktop.alpinelinux.org>
In-Reply-To
<9E4C0664-F862-4A62-8DDC-C2AA66D60EBD@gmail.com> (view parent)
Sender timestamp
1367241142
DKIM signature
missing
Download raw message
On Sun, 28 Apr 2013 19:19:24 +0200
Uroš Kolar <host.uros@gmail.com> 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:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)