[Bug 230627] New: pm-utils: can't create hook to restart service 'novell-zmd'
https://bugzilla.novell.com/show_bug.cgi?id=230627 Summary: pm-utils: can't create hook to restart service 'novell- zmd' Product: openSUSE 10.2 Version: Final Platform: i686 OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse+build@de-korte.org QAContact: qa@suse.de In order to restart services, stopservice() in /etc/pm/functions writes the service name to /var/run/pm-suspend through echo "export ${1}_SERVICE_ACTIVATE=yes" >> /var/run/pm-suspend For the service 'novell-zmd', this fails in restartservice(), since the '-' sign is not allowed in an identifier. This can be reproduced on the command line easily # export novell-zmd_SERVICE_ACTIVATE=yes bash: export: `novell-zmd_SERVICE_ACTIVATE=yes': not a valid identifier The consequence is, that after resume the service is no longer running. This can be fixed in either the service name (changing to novell_zmd for example) or by escaping the '-' sign. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230627 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |seife@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230627 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #1 from seife@novell.com 2006-12-23 14:38 MST ------- I'll talk about this with pm-utils upstream. Until then, i'd suggest to not use the stopservice() and restartservice() functions for your hook but just do service novell-zmd status 2>/dev/null | grep -c -q running if [ "$?" == 0 ]; then echo "export zmd_SERVICE_ACTIVATE=yes" >> /var/run/pm-suspend /etc/init.d/novell-zmd stop fi in the suspend/hibernate section of your hook and if [ x"$zmd_SERVICE_ACTIVATE" == "xyes" ]; then /etc/init.d/novell-zmd start fi in the resume/thaw section. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230627 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Fixed in Milestone|--- |openSUSE 10.3 ------- Comment #2 from seife@novell.com 2007-06-06 04:45 MST ------- A fix was submitted to upstream pm-utils by me that sanitizes the service names ("-" and "." are replaced by "_") so that this will work with future versions. The fix is already in openSUSE Factory since some time, but IMO it does not warrant an online update for 10.2, since it can be worked around as shown in comment #1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com