22 lines
690 B
SYSTEMD
22 lines
690 B
SYSTEMD
|
[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
|