diff options
Diffstat (limited to 'testing/ma1sd/ma1sd.initd')
-rw-r--r-- | testing/ma1sd/ma1sd.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/ma1sd/ma1sd.initd b/testing/ma1sd/ma1sd.initd new file mode 100644 index 00000000000..a815c0f1b30 --- /dev/null +++ b/testing/ma1sd/ma1sd.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +supervisor=supervise-daemon + +name="ma1sd" +description="Daemon for ma1sd, the federated Matrix identity server" + +: ${command_user:="ma1sd:ma1sd"} +: ${config:="/etc/ma1sd/ma1sd.yaml"} + +command="/usr/bin/ma1sd" +command_args="-c $config $command_args" + +depends() { + need net +} + +start_pre() { + # /var/lib/ma1sd needs to be owned by the ma1sd user + checkpath --directory --owner "$command_user" /var/lib/ma1sd +} |