From 2275192021130da8e3bed22be2cd653ce9793a47 Mon Sep 17 00:00:00 2001 From: Valery Kartel Date: Fri, 21 Apr 2017 16:37:33 +0300 Subject: testing/nut: fix user creation in post-install -- add nut home dir /var/lib/nut used for scheduler fix libexec and driver dirs (libexec -> lib) add using dns in init-scripts remove conf.d files from package because it have no sence for now cleanups in APKBUILD and init-scripts --- testing/nut/upsmon.initd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'testing/nut/upsmon.initd') diff --git a/testing/nut/upsmon.initd b/testing/nut/upsmon.initd index 62adaf22dd..4a7efe8ba4 100644 --- a/testing/nut/upsmon.initd +++ b/testing/nut/upsmon.initd @@ -1,19 +1,20 @@ #!/sbin/openrc-run -name=nut-monitor +name="UPS Monitor" pidfile=/run/upsmon.pid command=/usr/sbin/upsmon required_files="/etc/nut/nut.conf /etc/nut/upsmon.conf" extra_started_commands="reload" +start_stop_daemon_args="--quiet" depend() { - use net . /etc/nut/nut.conf case $MODE in standalone|netserver) need nut-upsd ;; esac + use net dns } start_pre() { @@ -29,6 +30,6 @@ start_pre() { reload() { ebegin "Reloading $name" - start-stop-daemon --signal HUP --pidfile ${pidfile} + start-stop-daemon --signal HUP --pidfile $pidfile eend $? } -- cgit v1.2.3