20 lines
567 B
Desktop File
20 lines
567 B
Desktop File
[Unit]
|
|
Description=WorkflowDirect git bot for %i
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=exec
|
|
ExecStart=/usr/bin/workflow-direct
|
|
EnvironmentFile=-/etc/default/%i/workflow-direct.env
|
|
DynamicUser=yes
|
|
NoNewPrivileges=yes
|
|
ProtectSystem=strict
|
|
RuntimeDirectory=%i
|
|
# SLES 15 doesn't have HOME set for dynamic users, so we improvise
|
|
BindReadOnlyPaths=/etc/default/%i/known_hosts:/etc/ssh/ssh_known_hosts /etc/default/%i/config.json:%t/%i/config.json /etc/default/%i/id_ed25519 /etc/default/%i/id_ed25519.pub
|
|
WorkingDirectory=%t/%i
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|