X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-ee0-f47.google.com (mail-ee0-f47.google.com [74.125.83.47]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id AAC6BDC0275 for ; Sun, 28 Apr 2013 14:42:23 +0000 (UTC) Received: by mail-ee0-f47.google.com with SMTP id b57so2257651eek.6 for ; Sun, 28 Apr 2013 07:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:subject:message-id:date:to :mime-version:x-mailer; bh=VFCTAwM3lpMRvFJ1Q1GeNpWxDy9eBKUU43vSs8dlHWc=; b=CumWKLYtpP6WK5W3rx10m2Q6o+m/rKFKG9aHyhd6xrYyWtRHPxshyQnf4K45DUtbn7 zo71Te2fnsvYIkXHf5JTdizE+nZUg4RJXEYCznv9NB+uzX4srwYOI+rYoo8/ocyEPIPQ NX/jqv9robDtCG9CRgM4vIT0KtPFqyjogWF/x6RPUg7C9svwUftI/K8pwF33w7AtSKjd mBChnXrtQTEuUhWxFg+2ul8SOQfaQ+MgHF6TXLw1v/ccmtqQ3s+wvuiOBUHJ5I8c35jc /QX4qpoiupIwaXkei/Qlb7wNsoHrkBiy92ylVz+49zZKoAJO66l7AbBLHTlxe8BCqDpA aCXQ== X-Received: by 10.14.174.5 with SMTP id w5mr9513929eel.1.1367160141736; Sun, 28 Apr 2013 07:42:21 -0700 (PDT) Received: from [172.17.52.71] (BSN-61-65-68.static.dsl.siol.net. [86.61.65.68]) by mx.google.com with ESMTPSA id k43sm27807216een.2.2013.04.28.07.42.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Apr 2013 07:42:20 -0700 (PDT) From: =?windows-1252?Q?Uro=9A_Kolar?= Content-Type: multipart/mixed; boundary="Apple-Mail=_7CBE64BB-0807-420B-8B3E-85F7D6CF5DBA" Subject: [alpine-devel] samba init piddir error fix Message-Id: Date: Sun, 28 Apr 2013 16:42:19 +0200 To: alpine-devel@lists.alpinelinux.org X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) --Apple-Mail=_7CBE64BB-0807-420B-8B3E-85F7D6CF5DBA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 --Apple-Mail=_7CBE64BB-0807-420B-8B3E-85F7D6CF5DBA Content-Disposition: attachment; filename=samba.diff Content-Type: application/octet-stream; name="samba.diff" Content-Transfer-Encoding: 7bit diff --git a/samba b/samba index c352f43..406d6d0 100755 --- a/samba +++ b/samba @@ -7,6 +7,8 @@ if [ "$DAEMON" != "samba" ]; then daemon_list=$DAEMON fi +PIDDIR=/var/run/samba + depend() { need net after firewall @@ -18,7 +20,7 @@ start_smbd() { } stop_smbd() { - start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid + start-stop-daemon --stop --quiet --pidfile ${PIDDIR}/smbd.pid } start_nmbd() { @@ -27,7 +29,7 @@ start_nmbd() { } stop_nmbd() { - start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid + start-stop-daemon --stop --quiet --pidfile ${PIDDIR}/nmbd.pid } start_winbindd() { @@ -36,12 +38,13 @@ start_winbindd() { } stop_winbindd() { - start-stop-daemon --stop --quiet --pidfile /var/run/samba/winbindd.pid + start-stop-daemon --stop --quiet --pidfile ${PIDDIR}/winbindd.pid } start() { for i in $daemon_list; do ebegin "Starting $i" + install -o root -g root -m 755 -d ${PIDDIR} start_$i eend $? done --Apple-Mail=_7CBE64BB-0807-420B-8B3E-85F7D6CF5DBA-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---