guestsession/etc/systemd/system/guest-home@.service

22 lines
690 B
SYSTEMD
Raw Normal View History

2022-11-26 10:41:29 +01:00
[Unit]
Description=Create and delete $HOME for Guest-Session USER: %i
Before=user@%i.service
#BindsTo=user@%i.service guest-session@%i.service
Conflicts=shutdown.target
BindsTo=user@%i.service
#RefuseManualStart=true
[Service]
Type=oneshot
RemainAfterExit=true
# if installed to /usr/lib/systemd, then activate this
#ExecStart=-/usr/lib/systemd/scripts/guest-session-homedir.sh create %i
#ExecStop=-/usr/lib/systemd/scripts/guest-session-homedir.sh delete %i
# if installed to /etc/systemd/syste/, then activate this
ExecStart=-/etc/systemd/scripts/guest-session-homedir.sh create %i
ExecStop= -/etc/systemd/scripts/guest-session-homedir.sh delete %i
[Install]
WantedBy=user@%i.service