~lefteris-nikoltsios/ubuntu/precise/samba/samba-lp1016895

« back to all changes in this revision

Viewing changes to debian/samba.nmbd.upstart

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-06-08 14:31:57 UTC
  • Revision ID: package-import@ubuntu.com-20120608143157-2isp66xvicmn007n
Tags: 2:3.6.3-2ubuntu2.3
d/samba.nmbd.upstart: Ignore the return code of testparm in pre-start;
it's used to query the configuration NOT to validate it in this context
which generates alot of bug reports for unrelated configuration issues
(LP: #791944).

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
        [ -f /etc/samba/smb.conf ] || { stop; exit 0; }
12
12
 
13
13
        install -o root -g root -m 755 -d /var/run/samba
14
 
        NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null`
 
14
        NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null || true`
15
15
 
16
16
        [ "x$NMBD_DISABLED" = xYes ] && { stop; exit 0; }
17
17