16 lines
293 B
SYSTEMD
16 lines
293 B
SYSTEMD
|
[Unit]
|
||
|
Description=SSH-Agent for User %I
|
||
|
After=network.target shadow.service
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=/bin/bash -c "ssh-agent -s > /home/%I/.bashrc.ssh-agent"
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||
|
Type=oneshot
|
||
|
KillMode=process
|
||
|
Restart=on-failed
|
||
|
User=%I
|
||
|
Group=%I
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|