Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1143 - /etc/init.d/apmd tries to create to pid-files and aborts
Summary: /etc/init.d/apmd tries to create to pid-files and aborts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-14 07:27 UTC by Christian Loitsch
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Loitsch 2002-03-14 07:27:13 UTC
/etc/init.d/apmd start fails saying that another apmd is already
started, and I should delete /var/run/apdm.pid if this is not correct.

Found out, that apmd creates its pid-file and the option 
--make-pidfile --pidfile /var/run/apmd.pid tries to create another one

fix: change to:
#       start-stop-daemon --start --quiet --exec /usr/sbin/apmd \
#               --make-pidfile --pidfile /var/run/apmd.pid -- ${APMD_OPTS}
        start-stop-daemon --start --quiet --exec /usr/sbin/apmd -- ${APMD_OPTS}
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-03-14 15:47:09 UTC
Hi

I do not use APM, but ACPI, so if you could help me here ..

Try to change it to:

    start-stop-daemon --start --quiet --pidfile /var/run/apmd.pid \
        --startas /usr/sbin/apmd -- ${APMD_OPTS}

and see if that works fine.

The difference is, it will start apmd, and then check if the pid is created ok.
Comment 2 Donny Davies (RETIRED) gentoo-dev 2002-03-17 21:30:07 UTC
fixed.  thanks to Christian and Azarah for analysis.