I have several systemd services which I want to run as a user (i.e.
not root) but I do want them to run at start-up whenever the system is
rebooted.
I have the service files in ~/.config/systemd/user, one of them is as
follows:-
[Unit]
Description=Run the helm display
[Service]
Type=oneshot
ExecStart=/usr/bin/bash -lc /home/chris/bin/helmlcd.py
Restart=on-failure
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
I now see why it doesn't work, the 'user bus' doesn't have a
multi-user.target link. The default answer seems to be to start the
service as a system service but that needs root access doesn't it?
Is running the service as a system service (presumably with 'User=%1'
in the service file the only way to do this? Or is there a way to get
a user service to always run at boot time?
--
Chris Green
ยท