/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}
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.