My solution to make WoL work after shutdown and suspend/hibernate was to create a script in /usr/lib/systemd/system-sleep/wol.sh:#!/bin/sh
# Setting WOL to Active
/usr/sbin/ethtool -s eth0 wol gDon't forget to make it executable!Since man 8 systemd-sleep considers this kind of solutions as hack, I also tried the following alternative code in /etc/systemd/system/wol@.service, however it didn&#
What is the difference between Halt and Poweroff commands? I understand that both of them lead to shutdown of the machine, then why 2 commands?
I want to know this because in my Virtual Machine. Poweroff leads to complete closure of VM. Whrereas halt leads to killing of all processes, and then a stall with 100% CPU Utilization. After giving the msg "System is going to be Shut down".
I have googled for a while, but I still haven't found a clear answer to the differences between halt and poweroff options for shutdown. So I would like to ask this question here.
If it helps, my computer is Lenovo T400 and OS is Ubuntu 12.04
Note:
I am talking about two options to the command shutdown.
Is there a counterpart to 'After=' for shutting down services in a particular order?I wrote a unit file that shall wrap an old init-script which handles initialization and backup of some ramdisks (tmpfs):[Unit]
Description=Persistent ramdisks
Requires=local-fs.target
After=local-fs.target
[Service]
Type=simple
RemainAfterExit=true
ExecStart=/etc/rc.d/ramdisks start
ExecStop=/etc/rc.d/ra
This works for me, YMMV:/etc/systemd/system/screen.service[Unit]
Description=Detached screen session
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
User=tomk
ExecStart=/usr/bin/screen -dm
[Install]
Wants=network.target
WantedBy=multi-user.target ~/.screenrc...
screen -t rtorrent 5 /usr/bin/rtorrent
...
tomk
https://bbs.archlinux.org/profile.php?id=1822
2013-03-
I really wasn't quite sure where to put this, so feel free to move it where you please. I have recently noticed that when I try to poweroff my computer, it results in a reboot. It does not make a difference what command I use, shutdown, systemctl poweroff, init, telinit, etc. It appears as though it si going to shut down nicely. Which I guess it actually does. My
@Smasher816 - the op is right that he/she should be able to reboot, shutdown without superuser access with systemd. I just began using systemd and mine seems to work fine. You aren't logged in as root or another user in another terminal or tty are you? I know that you should STILL be given the option to enter the root password and shutdown, but that is the best I can think o
65kid: Here is the new version,[Unit]
Description=Send IP over SMS
After=network.target
[Service]
Type=oneshot
ExecStart=/root/bin/sendip.sh
TimeoutSec=0
StandardInput=tty
[Install]
WantedBy=multi-user.targetBut there is still something wrong.
Some are fairly obvious. Specifically, I am referring to:
-h halt or power off after shutdown
-H halt after shutdown (implies -h)
-P power off after shutdown (implies -h)
Isn't halting or powering off kind of expected when you're shutting down?