Use temp /run instance directory for the config Use ./config.json as default from within the process
19 lines
389 B
Desktop File
19 lines
389 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
|
|
BindReadOnlyPaths=/etc/default/%i/config.json:%t/%i/config.json
|
|
WorkingDirectory=%t/%i
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|