You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
803 B
23 lines
803 B
# Calculate path=/etc/init.d name=#-cut(1,.)-# chmod=755 comment=# exists(/var/calculate/www/hass-configurator/hass-configurator-live)!=
|
|
#!/sbin/openrc-run
|
|
# Copyright 2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
description="Filesystem-browser and text-editor"
|
|
|
|
user="hass-configurator"
|
|
group="hass-configurator"
|
|
|
|
command="/var/calculate/www/${RC_SVCNAME}/${RC_SVCNAME}-live/.venv/bin/hass-configurator"
|
|
directory="/var/calculate/www/${RC_SVCNAME}/${RC_SVCNAME}-live"
|
|
command_args="/var/calculate/hass-configurator/settings.conf"
|
|
command_user="${user}:${group}"
|
|
command_background="yes"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
output_log="/var/log/${RC_SVCNAME}.log"
|
|
error_log="${output_log}"
|
|
|
|
start_pre() {
|
|
checkpath --file --owner $user --mode 0644 $output_log
|
|
}
|