Public bug reported:

god@world:~$ uname -a
Linux world 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 
x86_64 x86_64 GNU/Linux

god@world:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.1 LTS
Release:        12.04
Codename:       precise

god@world:~$ apt-cache policy bind9
bind9:
  Установлен: 1:9.8.1.dfsg.P1-4ubuntu0.5
  Кандидат:   1:9.8.1.dfsg.P1-4ubuntu0.5
  Таблица версий:
 *** 1:9.8.1.dfsg.P1-4ubuntu0.5 0
        500 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 
Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 
Packages
        100 /var/lib/dpkg/status
     1:9.8.1.dfsg.P1-4 0
        500 http://ru.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

I did it like this:
god@world:~$ sudo /etc/init.d/bind9 restart
[sudo] password for it-orion:
 * Stopping domain name service... bind9
/etc/init.d/bind9: 92: [: pid:: unexpected operator
   ...done.
 * Starting domain name service... bind9
   ...done.

With help of guys from li...@conference.jabber.ru we solved this bug:
god@world:~$ sudo nano /etc/init.d/bind9
-        if [ -n $pid ]; then
+       if [ -n "$pid" ]; then

I hope it helps for you all.

** Affects: bind9 (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  god@world:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 12.04.1 LTS
  Release:        12.04
  Codename:       precise
  
  god@world:~$ apt-cache policy bind9
  bind9:
-   Установлен: 1:9.8.1.dfsg.P1-4ubuntu0.5
-   Кандидат:   1:9.8.1.dfsg.P1-4ubuntu0.5
-   Таблица версий:
-  *** 1:9.8.1.dfsg.P1-4ubuntu0.5 0
-         500 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 
Packages
-         500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 
Packages
-         100 /var/lib/dpkg/status
-      1:9.8.1.dfsg.P1-4 0
-         500 http://ru.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
+   Установлен: 1:9.8.1.dfsg.P1-4ubuntu0.5
+   Кандидат:   1:9.8.1.dfsg.P1-4ubuntu0.5
+   Таблица версий:
+  *** 1:9.8.1.dfsg.P1-4ubuntu0.5 0
+         500 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 
Packages
+         500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 
Packages
+         100 /var/lib/dpkg/status
+      1:9.8.1.dfsg.P1-4 0
+         500 http://ru.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
  
  I did it like this:
  god@world:~$ sudo /etc/init.d/bind9 restart
- [sudo] password for it-orion: 
-  * Stopping domain name service... bind9
+ [sudo] password for it-orion:
+  * Stopping domain name service... bind9
  /etc/init.d/bind9: 92: [: pid:: unexpected operator
-    ...done.
-  * Starting domain name service... bind9
-    ...done.
+    ...done.
+  * Starting domain name service... bind9
+    ...done.
  
- With help of guys from li...@conference.jabber.ru we solve this bug:
+ With help of guys from li...@conference.jabber.ru we solved this bug:
  god@world:~$ sudo nano /etc/init.d/bind9
  -        if [ -n $pid ]; then
  +       if [ -n "$pid" ]; then
  
  I hope it helps for you all.

** Description changed:

+ god@world:~$ uname -a
+ Linux world 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 
x86_64 x86_64 x86_64 GNU/Linux
+ 
  god@world:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 12.04.1 LTS
  Release:        12.04
  Codename:       precise
  
  god@world:~$ apt-cache policy bind9
  bind9:
    Установлен: 1:9.8.1.dfsg.P1-4ubuntu0.5
    Кандидат:   1:9.8.1.dfsg.P1-4ubuntu0.5
    Таблица версий:
   *** 1:9.8.1.dfsg.P1-4ubuntu0.5 0
          500 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 
Packages
          500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 
Packages
          100 /var/lib/dpkg/status
       1:9.8.1.dfsg.P1-4 0
          500 http://ru.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
  
  I did it like this:
  god@world:~$ sudo /etc/init.d/bind9 restart
  [sudo] password for it-orion:
   * Stopping domain name service... bind9
  /etc/init.d/bind9: 92: [: pid:: unexpected operator
     ...done.
   * Starting domain name service... bind9
     ...done.
  
  With help of guys from li...@conference.jabber.ru we solved this bug:
  god@world:~$ sudo nano /etc/init.d/bind9
  -        if [ -n $pid ]; then
  +       if [ -n "$pid" ]; then
  
  I hope it helps for you all.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bind9 in Ubuntu.
https://bugs.launchpad.net/bugs/1092243

Title:
  /etc/init.d/bind9: 92: [: pid:: unexpected operator

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bind9/+bug/1092243/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to