[Bug 1448924] Re: watchdogd doesn't start on boot
Ryan Harper
1448924 at bugs.launchpad.net
Mon Apr 18 20:33:43 UTC 2016
I've uploaded a version of watchdog with this debdiff attached to my
ppa:
ppa:raharper/bugfixes
Please give a go and see if that resolves the starting on boot issue.
I've verified this fix myself under QEMU with a Xenial cloud image:
# create some user-data for easy login
% cat user-data
#cloud-config
password: passw0rd
chpasswd: { expire: False }
ssh_pwauth: True
# create a local-datasource
% cloud-localds -m local seed.img user-data
# launch the cloud-image under snapshot with the seed and watchdog device
qemu-system-x86_64 -enable-kvm -m 1024 -smp 2 \
-drive file=xenial-server-cloudimg-amd64-disk1.img,snapshot=on,format=qcow2,id=boot \
-watchdog i6300esb -watchdog-action reset \
-net user -net nic,model=virtio -nographic \
-cdrom seed.img \
-redir tcp:2222::22 \
-serial stdio
# ssh into the guest after boot
1. ssh -o UserKnownHostsFile=/dev/null -p 2222 ubuntu at localhost
# install watchdog kernel module (not in cloud image by default)
2. sudo apt-get update && sudo apt-get install linux-image-generic
# load watchdog module
3. sudo modprobe i6300esb
# install watchdog service
4. sudo apt-get install watchdog
3. sudo systemctl status watchdog
# observe error from current package
Apr 18 20:32:01 ubuntu systemd[1]: [/lib/systemd/system/watchdog.service:10] Unbalanced quoting, ignoring:
# install new package
4. sudo dpkg --install watchdog_5.14-3ubuntu1_amd64.deb
# tell systemd to install watchdog service
5. systemctl enable watchdog
Synchronizing state of watchdog.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable watchdog
# start it up
# systemctl start watchdog
root at ubuntu:~# echo $?
0
root at ubuntu:~# systemctl status watchdog
● watchdog.service - watchdog daemon
Loaded: loaded (/lib/systemd/system/watchdog.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2016-04-18 20:33:14 UTC; 6s ago
Process: 10518 ExecStart=/bin/sh -c [ $run_watchdog != 1 ] || exec /usr/sbin/watchdog $watchdog_options
Process: 10515 ExecStartPre=/bin/sh -c [ -z "${watchdog_module}" ] || [ "${watchdog_module}" = "none" ]
Main PID: 10521 (watchdog)
Tasks: 1 (limit: 512)
Memory: 356.0K
CPU: 5ms
CGroup: /system.slice/watchdog.service
└─10521 /usr/sbin/watchdog
Apr 18 20:33:14 ubuntu systemd[1]: Starting watchdog daemon...
Apr 18 20:33:14 ubuntu watchdog[10521]: starting daemon (5.14):
Apr 18 20:33:14 ubuntu watchdog[10521]: int=1s realtime=yes sync=no soft=no mla=0 mem=0
Apr 18 20:33:14 ubuntu watchdog[10521]: ping: no machine to check
Apr 18 20:33:14 ubuntu watchdog[10521]: file: no file to check
Apr 18 20:33:14 ubuntu watchdog[10521]: pidfile: no server process to check
Apr 18 20:33:14 ubuntu watchdog[10521]: interface: no interface to check
Apr 18 20:33:14 ubuntu watchdog[10521]: temperature: no sensors to check
Apr 18 20:33:14 ubuntu watchdog[10521]: test=none(0) repair=none(0) alive=none heartbeat=none to=root no_a
Apr 18 20:33:14 ubuntu systemd[1]: Started watchdog daemon.
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1448924
Title:
watchdogd doesn't start on boot
Status in watchdog package in Ubuntu:
Confirmed
Bug description:
Description: Ubuntu 15.04
Release: 15.04
watchdog:
Installed: 5.14-3
Candidate: 5.14-3
Version table:
*** 5.14-3 0
500 http://de.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
100 /var/lib/dpkg/status
Expected:
Watchdog daemon starts on system boot.
Current:
After updating from Utopic to Vivid the watchdog daemon doesn't start. A manual service watchdog start after boot up starts the daemon normally.
There seems to be a problem with the transition of the init scripts from Upstart to SystemD.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/watchdog/+bug/1448924/+subscriptions
More information about the Ubuntu-sponsors
mailing list