Systemd: how to add a service to rescue.target
Hello,
I'm on Debian 13 Trixie, I want that the "gpm.servive" runs when I'm in
rescue/recovery mode.
I tried to remove K01gpm symlink from "/etc/rc1.d" and add S01gpm
symlink in its place but nothing works playing with "etc/rc*.d" directories.
The gpm.service file contains:
~# cat /usr/lib/systemd/system/gpm.service
[Unit]
Description=Console Mouse manager
ConditionPathExists=/etc/gpm.conf
Documentation=man:gpm(8) man:gpm.conf(5) man:gpm-types(7)
[Service]
ExecStart=/usr/share/gpm/gpm-systemd-wrapper.sh
Type=forking
PIDFile=/run/gpm.pid
[Install]
WantedBy=multi-user.target
I tried to edit the file changing the line "WantedBy" in this way:
[Install]
WantedBy=multi-user.target rescue.target
and rebooted, but gpm don't work in rescue.target.
I want that gpm.service runs in both multi-user.target and
rescue.target, how to proceed?
Thanks in advance, kind regards.
--
Franco Martelli
Reply to: