16 lines
293 B
Desktop File
16 lines
293 B
Desktop File
[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
|