You are not logged in.
Pages: 1
I have recently installed arch and want to run custom scripts on when using systemctl suspend.
I have been following the wiki but when i try "systemctl enable root-suspend" for root/system actions or "systemctl enable suspend@marno && systemctl enable resume@marno" i get an error:
Failed to issue method call: No such file or directorywhat am I missing?
systemctl list-unit-filesproduces:
UNIT FILE STATE
proc-sys-fs-binfmt_misc.automount static
dev-hugepages.mount static
dev-mqueue.mount static
proc-sys-fs-binfmt_misc.mount static
sys-fs-fuse-connections.mount static
sys-kernel-config.mount static
sys-kernel-debug.mount static
tmp.mount static
systemd-ask-password-console.path static
systemd-ask-password-wall.path static
autovt@.service disabled
avahi-daemon.service disabled
avahi-dnsconfd.service disabled
colord.service static
console-getty.service disabled
console-shell.service disabled
cronie.service disabled
dbus-org.freedesktop.hostname1.service static
dbus-org.freedesktop.locale1.service static
dbus-org.freedesktop.login1.service static
dbus-org.freedesktop.timedate1.service static
dbus.service static
debug-shell.service disabled
dhcpcd.service disabled
dhcpcd@.service disabled
display-manager.service enabled
dmeventd.service static
emergency.service static
fancontrol.service disabled
ftpd.service disabled
getty@.service enabled
gpm.service disabled
healthd.service disabled
ifplugd@.service disabled
ip6tables.service disabled
iptables.service disabled
krb5-kadmind.service disabled
krb5-kdc.service disabled
krb5-kpropd.service disabled
krb5-kpropd@.service static
lm_sensors.service disabled
lvm-monitoring.service disabled
lvmetad.service static
mdadm.service disabled
net-auto-wired.service disabled
net-auto-wireless.service enabled
net-profiles.service disabled
netcfg.service disabled
netcfg@.service disabled
nscd.service disabled
polkit.service static
ppp@.service disabled
quotaon.service static
rescue.service static
rfkill-block@.service disabled
rfkill-unblock@.service disabled
sensord.service disabled
serial-getty@.service static
slim.service enabled
systemd-ask-password-console.service static
systemd-ask-password-wall.service static
systemd-binfmt.service static
systemd-fsck-root.service static
systemd-fsck@.service static
systemd-halt.service static
systemd-hibernate.service static
systemd-hostnamed.service static
systemd-hybrid-sleep.service static
systemd-initctl.service static
systemd-journal-flush.service static
systemd-journal-gatewayd.service static
systemd-journald.service static
systemd-kexec.service static
systemd-localed.service static
systemd-logind.service static
systemd-modules-load.service static
systemd-poweroff.service static
systemd-quotacheck.service static
systemd-random-seed-load.service static
systemd-random-seed-save.service static
systemd-readahead-collect.service disabled
systemd-readahead-done.service static
systemd-readahead-drop.service disabled
systemd-readahead-replay.service disabled
systemd-reboot.service static
systemd-remount-fs.service static
systemd-shutdownd.service static
systemd-suspend.service static
systemd-sysctl.service static
systemd-timedated.service static
systemd-tmpfiles-clean.service static
systemd-tmpfiles-setup.service static
systemd-udev-settle.service static
systemd-udev-trigger.service static
systemd-udevd.service static
systemd-update-utmp-runlevel.service static
systemd-update-utmp-shutdown.service static
systemd-user-sessions.service static
systemd-vconsole-setup.service static
udisks.service disabled
udisks2.service static
upower.service disabled
usbmuxd.service static
user@.service static
uuidd.service static
vboxweb.service disabled
wpa_supplicant-nl80211@.service disabled
wpa_supplicant-wired@.service disabled
wpa_supplicant.service disabled
wpa_supplicant@.service disabled
avahi-daemon.socket disabled
dbus.socket static
dmeventd.socket static
krb5-kpropd.socket disabled
lvmetad.socket static
syslog.socket static
systemd-initctl.socket static
systemd-journal-gatewayd.socket disabled
systemd-journald.socket static
systemd-shutdownd.socket static
systemd-udevd-control.socket static
systemd-udevd-kernel.socket static
uuidd.socket disabled
basic.target static
bluetooth.target static
cryptsetup.target static
ctrl-alt-del.target disabled
default.target disabled
emergency.target static
final.target static
getty.target static
graphical.target disabled
halt.target disabled
hibernate.target static
hybrid-sleep.target static
kexec.target disabled
local-fs-pre.target static
local-fs.target static
mail-transfer-agent.target static
multi-user.target disabled
network.target static
nss-lookup.target static
nss-user-lookup.target static
poweroff.target disabled
printer.target static
reboot.target disabled
remote-fs-pre.target static
remote-fs.target enabled
rescue.target disabled
rpcbind.target static
runlevel0.target disabled
runlevel1.target disabled
runlevel2.target disabled
runlevel3.target disabled
runlevel4.target disabled
runlevel5.target disabled
runlevel6.target disabled
shutdown.target static
sigpwr.target static
sleep.target static
smartcard.target static
sockets.target static
sound.target static
suspend.target static
swap.target static
sysinit.target static
syslog.target static
system-update.target static
time-sync.target static
umount.target static
systemd-readahead-done.timer static
systemd-tmpfiles-clean.timer static
172 unit files listed.From that list I can see there is no root-suspend.
Offline
You didn't actually read the wiki page, did you?
Offline
Hahah, I want to assume your being funny (expressing disbelif about someone actually reading the wiki) and not implying that I lied. if I missed something, or misinterperted please do tell me!
Actually I think i see my mistake I have been trying "systemctl enable root-suspend" before making "/etc/systemd/system/root-resume.service"
Offline
Yes, this is why I was asking, because it clearly indicates that you need to create the necessary units to actually hook desired functions into the service.target
Offline
Pages: 1