[Bug 1092243] [NEW] /etc/init.d/bind9: 92: [: pid:: unexpected operator
Al Tarakanoff
1092243 at bugs.launchpad.net
Wed Dec 19 18:25:30 UTC 2012
Public bug reported:
god at 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 at world:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
god at 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 at 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 linux at conference.jabber.ru we solved this bug:
god at 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 at world:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
god at 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 at 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 linux at conference.jabber.ru we solve this bug:
+ With help of guys from linux at conference.jabber.ru we solved this bug:
god at 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 at 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 at world:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
god at 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 at 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 linux at conference.jabber.ru we solved this bug:
god at 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
More information about the Ubuntu-server-bugs
mailing list