[Bug 339443] New: /.hplip/hplip.conf gets created at boot time
https://bugzilla.novell.com/show_bug.cgi?id=339443 Summary: /.hplip/hplip.conf gets created at boot time Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: jsmeix@novell.com ReportedBy: wolfgang@rosenauer.org QAContact: qa@suse.de Found By: --- During system boot /.hplip/hplip.conf gets created which is empty but /.hplip looks weird in the root filesystem. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443#c1 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |wolfgang@rosenauer.org --- Comment #1 from Johannes Meixner <jsmeix@novell.com> 2007-11-06 03:29:18 MST --- Oops - I have it too! Wolfgang, could you remove it and check if it still happens with the newest HPLIP version 2.7.10 from http://download.opensuse.org/repositories/home:/jsmeix/ -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443#c2 Wolfgang Rosenauer <wolfgang@rosenauer.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|wolfgang@rosenauer.org | --- Comment #2 from Wolfgang Rosenauer <wolfgang@rosenauer.org> 2007-11-07 09:51:47 MST --- It still happens with 2.7.10. (BTW: After upgrading hp-toolbox wasn't able to connect to the printer. Maybe some pre/post handling could make the printer usable after updates of hplip? While that is another issue.) -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443#c3 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #3 from Johannes Meixner <jsmeix@novell.com> 2007-11-08 04:40:35 MST --- Yesterday I did a new install of openSUSE 10.3 and I got: drwxr----- 2 root root 4096 Nov 7 12:36 /.hplip -rw-r----- 1 root root 0 Nov 7 12:36 /.hplip/hplip.conf But the packages were installed much earlier: # grep hplip /var/log/YaST2/y2logRPM 2007-11-07 12:03:03 hplip-hpijs-2.7.7-36.i586.rpm installed ok 2007-11-07 12:05:19 hplip-2.7.7-36.i586.rpm installed ok When I grep for '^2007-11-07 12:36' in the YaST logs, it seems this time is the end of the package installation but nothing there indicates something regarding hplip. Now I did # mv /.hplip /.hplip.install.orig and installed HPLIP version 2.7.10 # rpm -Uhv hplip-hpijs-2.7.10-19.2.i586.rpm hplip-2.7.10-19.2.i586.rpm # ls -ld /.hplip /.hplip/hplip.conf ls: cannot access /.hplip: No such file or directory ls: cannot access /.hplip/hplip.conf: No such file or directory # rchplip restart Stopping hpssd: [ OK ] Starting hpssd: [ OK ] # ls -ld /.hplip /.hplip/hplip.conf ls: cannot access /.hplip: No such file or directory ls: cannot access /.hplip/hplip.conf: No such file or directory Perhaps it happens only with the original version 2.7.7 in openSUSE 10.3? # rpm -e --nodeps hplip-hpijs hplip # rpm -Uhv hplip-hpijs.rpm hplip.rpm # ls -ld /.hplip /.hplip/hplip.conf ls: cannot access /.hplip: No such file or directory ls: cannot access /.hplip/hplip.conf: No such file or directory # rchplip status hpssd is stopped # rchplip start Starting hpssd: [ OK ] # ls -ld /.hplip /.hplip/hplip.conf ls: cannot access /.hplip: No such file or directory ls: cannot access /.hplip/hplip.conf: No such file or directory -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443#c4 --- Comment #4 from Wolfgang Rosenauer <wolfgang@rosenauer.org> 2007-11-08 04:57:56 MST --- I can confirm that just restart hplip doesn't create the file. I still have 2.7.10 installed, stopped it, removed /.hplip and restarted hplip and no /.hplip directory has been created. The I stopped hplip and rebooted and after reboot the file is again there. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443#c5 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX --- Comment #5 from Johannes Meixner <jsmeix@novell.com> 2007-11-08 05:56:32 MST --- init 1 init 3 is sufficient to reproduce it. Therefore I thought it starts too early in the init process so that I added to /etc/init.d/hplip the line # Required-Start: $local_fs $remote_fs $syslog smtp and did an "insserv hplip" so that it is now very late in the init process (in particular the "smtp" makes it very late): /etc/init.d/rc3.d/S12hplip /etc/init.d/rc5.d/S12hplip but this doesn't help. init 1 init 3 still results the files while in the running system rchplip stop rchplip start doesn't result the files. I have no idea what the reason might be. Currently I have too many bug reports so that I like to close this one as WONTFIX (the empty file doesn't cause any damage). Wolfgang, feel free to reopen it if you have an idea what the reason is. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443#c6 --- Comment #6 from Johannes Meixner <jsmeix@novell.com> 2007-11-08 11:05:29 MST --- To verify that it comes really from /etc/init.d/hplip I added a line "rm -rf /.hplip/" near the end of the start() function (before the "return $RETVAL" line) and now - what a surprise - there is no longer /.hplip hp-toolbox seems to work as before so that it seems hpssd also works o.k. without /.hplip (what should it do with an empty file). -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443#c7 --- Comment #7 from Johannes Meixner <jsmeix@novell.com> 2007-11-08 11:17:24 MST --- Hmmm... could there be a difference in the environment if init starts it or if a logged in root user starts it? Is there no home directory if init starts it? If yes, it seems to be clear why ~/.hplip/ gets created as /.hplip/ -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443#c8 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX | --- Comment #8 from Johannes Meixner <jsmeix@novell.com> 2007-11-08 11:26:47 MST --- I added to /etc/init.d/hplip the lines echo qqq >$HOME/qqq echo qqqq >~/qqqq and what did I get after "init 1" "init 3": nelson:~ # ls -l /qq* -rw-r--r-- 1 root root 4 Nov 8 19:22 /qqq -rw-r--r-- 1 root root 5 Nov 8 19:22 /qqqq -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443#c9 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED --- Comment #9 from Johannes Meixner <jsmeix@novell.com> 2007-11-08 11:33:47 MST --- I cannot fix /etc/init.d/hplip by setting $HOME to /root/ because this would overwrite root's real ~/.hplip/hplip.conf with an empty file. I like to set $HOME to something like /dev/null but I would need a /dev/null/ directory. Perhaps it is sufficient to set $HOME to /tmp/ (one more empty file in /tmp/ should not matter)? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443#c10 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #10 from Johannes Meixner <jsmeix@novell.com> 2007-11-09 06:40:41 MST --- Changed /etc/init.d/hplip: Added "$local_fs $remote_fs $syslog" to Required-Start to be on the safe side and added a line "export HOME=/tmp" to mitigate this bug: ----------------------------------------------------------------------------- @@ -17,7 +17,7 @@ # ### BEGIN INIT INFO # Provides: hplip -# Required-Start: +# Required-Start: $local_fs $remote_fs $syslog # Required-Stop: # Should-Start: # Should-Stop: @@ -36,6 +36,7 @@ else export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" export LC_ALL="POSIX" export LANG="POSIX" +export HOME="/tmp" umask 022 daemon() { ----------------------------------------------------------------------------- This results /tmp/.hplip/ and and epmty /tmp/.hplip/hplip.conf -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443#c11 --- Comment #11 from Johannes Meixner <jsmeix@novell.com> 2007-11-09 07:11:00 MST --- I filed an upstream bug report: Bug #161192 in HPLIP: "hpssd creates /.hplip/hplip.conf at boot time" https://bugs.launchpad.net/hplip/+bug/161192 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339443 User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=339443#c12 --- Comment #12 from Johannes Meixner <jsmeix@novell.com> 2008-09-17 01:09:29 MDT --- Since HPLIP version 2.8.4 there is no longer any daemon (hpssd has been replaced with a hp-systray user process which is started only when needed) so that this issue died away as a side-effect. -- 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.
participants (1)
-
bugzilla_noreply@novell.com