Custom Query (894 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (40 - 42 of 894)

Ticket Owner Reporter Resolution Summary
#673 desai Jack Neely <[email protected]…> fixed service mode feature request: do not restart service
Description

I would like a mode option to the Service tag that would NOT restart the service if its bundle/etc is updated iff the service is already running.

I deploy OpenAFS which I want bcfg2 to configure and start per normal. However, if OpenAFS is already running in cannot be restarted. The sane issue is its a filesystem and users/processes may be using it. The insane issue is...AFS can't be restarted without it doing bad things to your kernel.

#864 solj https://www.google.com/accounts/o8/id?id=AItOawlo86Mt9tqt2k06humTEpjOdekfWJoTv4M fixed service bcfg2-server status returns incorrect results
Description

Bcfg2 v1.0.1-1 on a RHEL system. running /etc/init.d/bcfg2-server status returns a "is running" method whether bcfg2-server is running or not.

Adding a "ps -ef | grep $PID" to line 77 of the script to examine which process that the status function thinks is "running" shows that its the /etc/init.d script that matches.

[[email protected] ~]# uname -a
Linux rhel 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]# rpm -q bcfg2-server
bcfg2-server-1.0.1-1
[[email protected] ~]# service bcfg2-server status
bcfg2-server (pid 8153) is running...
root      8153  8148  0 10:57 pts/0    00:00:00 /bin/sh /etc/init.d/bcfg2-server status
root      8156  8153  0 10:57 pts/0    00:00:00 ps -ef
root      8157  8153  0 10:57 pts/0    00:00:00 grep 8153

To fix this adding a the "-o %PPID" flag to the pidof call eliminates the parent process from pidof's process list.

[[email protected] ~] diff /etc/init.d/bcfg2-server /etc/init.d/bcfg2-server.orig
74c74
<    PID=$(pidof -x $BINARY -o %PPID)
---
>    PID=$(pidof -x $BINARY)
[[email protected] ~] service bcfg2-server status
bcfg2-server is not running                               [FAILED]

#1157 desai https://www.google.com/accounts/o8/id?id=AItOawkfHvWdYf7g8kSZA32s7dhK0Xig9JKo_CA fixed server: missing import in DBSettings.py
Description

In 1.4.0pre1 an import is missing, causing an exception further down.

--- a/src/lib/Bcfg2/DBSettings.py
+++ b/src/lib/Bcfg2/DBSettings.py
@@ -9,6 +9,7 @@
 try:
     import django
     import django.conf
+    import django.core.management
     HAS_DJANGO = True
 except ImportError:
     HAS_DJANGO = False

/mkd

Note: See TracQuery for help on using queries.