aboutsummaryrefslogtreecommitdiffstats
path: root/testing/homer-app/homer-app.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/homer-app/homer-app.initd')
-rw-r--r--testing/homer-app/homer-app.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/homer-app/homer-app.initd b/testing/homer-app/homer-app.initd
new file mode 100644
index 00000000000..88309124111
--- /dev/null
+++ b/testing/homer-app/homer-app.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+
+description="HOMER App and UI"
+command=/usr/bin/homer-app
+command_args="-webapp-config-path=/etc/homer -webapp-log-path /var/log/homer"
+command_background=yes
+command_user=homer
+command_group=homer
+pidfile="/run/homer/${RC_SVCNAME}.pid"
+
+depend() {
+ need net
+ after firewall
+ want postgresql
+}
+
+start_pre() {
+ checkpath --directory --owner $command_user:$command_group ${pidfile%/*} /var/log/homer
+}