I tested the systemd package from proposed and it works as expected. Below are the test results:
ubuntu@ubuntu:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
accountsservice apport apt apt-transport-https apt-utils base-files bsdutils
byobu cloud-init dbus dpkg file gcc-4.9-base gnupg gpgv grub-legacy-ec2
initramfs-tools initramfs-tools-bin language-selector-common
libaccountsservice0 libapt-inst1.5 libapt-pkg4.12 libblkid1
libboost-iostreams1.54.0 libc-bin libc6 libcgmanager0 libdbus-1-3 libgcc1
libjson-c2 libjson0 libmagic1 libmount1 libpam-systemd libssl1.0.0
libsystemd-daemon0 libsystemd-login0 libtasn1-6 libudev1 libuuid1 libxml2
mount multiarch-support net-tools openssl python3-apport python3-distupgrade
python3-gi python3-problem-report resolvconf systemd-services tzdata
ubuntu-release-upgrader-core udev upstart util-linux uuid-runtime
ubuntu@ubuntu:~$ cat /lib/udev/rules.d/70-power-switch.rules
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
LABEL="power_switch_end"
ubuntu@ubuntu:~$
</>hpiLO-> show node list
Slot ID Proc Manufacturer Architecture Memory Power Health
---- ----- ---------------------- -------------------- ------ ----- ------
3 c3n1 ************************************ 8 GB Off OK
3 c3n2 ************************************ 8 GB On OK
3 c3n3 ************************************ 8 GB Off OK
3 c3n4 ************************************ 8 GB On OK
hpiLO->
hpiLO-> set node power off shutdown c3n4
c3: #Cartridge 3
c3n4: #Node 4 Shutting node down gracefully
hpiLO->
ubuntu@ubuntu:~$
Broadcast message from root@ubuntu
(unknown) at 19:40 ...
The system is going down for power off NOW!
Connection to 192.168.17.25 closed by remote host.
Connection to 192.168.17.25 closed.
ubuntu@sm2:~$
hpiLO-> show node list
Slot ID Proc Manufacturer Architecture Memory Power Health
---- ----- ---------------------- -------------------- ------ ----- ------
3 c3n1 ************************************ 8 GB Off OK
3 c3n2 ************************************ 8 GB On OK
3 c3n3 ************************************ 8 GB Off OK
3 c3n4 ************************************ 8 GB Off OK
I tested the systemd package from proposed and it works as expected. Below are the test results:
ubuntu@ubuntu:~$ sudo apt-get dist-upgrade
Reading package lists... Done selector- common rvice0 libapt-inst1.5 libapt-pkg4.12 libblkid1 iostreams1. 54.0 libc-bin libc6 libcgmanager0 libdbus-1-3 libgcc1 daemon0 libsystemd-login0 libtasn1-6 libudev1 libuuid1 libxml2 problem- report resolvconf systemd-services tzdata release- upgrader- core udev upstart util-linux uuid-runtime
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
accountsservice apport apt apt-transport-https apt-utils base-files bsdutils
byobu cloud-init dbus dpkg file gcc-4.9-base gnupg gpgv grub-legacy-ec2
initramfs-tools initramfs-tools-bin language-
libaccountsse
libboost-
libjson-c2 libjson0 libmagic1 libmount1 libpam-systemd libssl1.0.0
libsystemd-
mount multiarch-support net-tools openssl python3-apport python3-distupgrade
python3-gi python3-
ubuntu-
ubuntu@ubuntu:~$ cat /lib/udev/ rules.d/ 70-power- switch. rules
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
ACTION=="remove", GOTO="power_ switch_ end"
SUBSYSTEM=="input", KERNEL=="event*", SUBSYSTEMS=="acpi", TAG+="power-switch" ="thinkpad_ acpi", TAG+="power-switch" ="platform" , KERNELS= ="gpio_ keys.12" , ATTRS{keys}=="116", PROGRAM="/bin/cat /proc/device- tree/model" , RESULT=="HP ProLiant m800 Server Cartridge", TAG+="power-switch"
SUBSYSTEM=="input", KERNEL=="event*", KERNELS=
SUBSYSTEM=="input", KERNEL=="event*", SUBSYSTEMS=
LABEL=" power_switch_ end"
ubuntu@ubuntu:~$
</>hpiLO-> show node list
Slot ID Proc Manufacturer Architecture Memory Power Health ------- ------- - ------- ------- ------ ------ ----- ------ ******* ******* ******* ******* * 8 GB Off OK ******* ******* ******* ******* * 8 GB On OK ******* ******* ******* ******* * 8 GB Off OK ******* ******* ******* ******* * 8 GB On OK
---- ----- -------
3 c3n1 *******
3 c3n2 *******
3 c3n3 *******
3 c3n4 *******
hpiLO->
hpiLO-> set node power off shutdown c3n4
c3: #Cartridge 3
c3n4: #Node 4 Shutting node down gracefully
hpiLO->
ubuntu@ubuntu:~$
Broadcast message from root@ubuntu
(unknown) at 19:40 ...
The system is going down for power off NOW!
Connection to 192.168.17.25 closed by remote host.
Connection to 192.168.17.25 closed.
ubuntu@sm2:~$
hpiLO-> show node list
Slot ID Proc Manufacturer Architecture Memory Power Health ------- ------- - ------- ------- ------ ------ ----- ------ ******* ******* ******* ******* * 8 GB Off OK ******* ******* ******* ******* * 8 GB On OK ******* ******* ******* ******* * 8 GB Off OK ******* ******* ******* ******* * 8 GB Off OK
---- ----- -------
3 c3n1 *******
3 c3n2 *******
3 c3n3 *******
3 c3n4 *******
hpiLO->