If you activate "SaveClock yes" in /etc/hibernate/common.conf and have services installed that depend on the "clock" service, they are also stopped during suspend, but not restarted afterwards. This might only apply to systems using OpenRC, which I use (sys-apps/openrc-0.12.4). In my case, this affects fcron: # /etc/init.d/hwclock -Z stop * stop: fcron hwclock # I expect only hwclock to be stopped. Reproducible: Always Steps to Reproduce: 1. Use OpenRC, install fcron and hibernate-script 2. Activate "SaveClock yes" in /etc/hibernate/common.conf 2. ps ax -> fcron runs 4. # hibernate 5. resume your system 6. ps ax -> no fcron runs Actual Results: fcron is stopped and remains stopped Expected Results: fcron keeps on running. I fixed this by ignoring hwclock's dependencies when stopping it, see the attached patch.
Created attachment 371428 [details, diff] A patch that solves the problem
Hi, Can you please checkout the following instead: + /etc/init.d/hwclock save > /dev/null 2>&1 and: + /etc/init.d/hwclock restart > /dev/null 2>&1 BTW: on recent kernels it is better to configure CONFIG_RTC_HCTOSYS than using this option.
This change also works for me. Thank you for looking at it! As suggested, I will be switching to clock_hctosys="NO" in the future. Thank you for the hint.