From 82ce840224f59bb88743807097e71b8f8779534c Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Sun, 28 Jun 2015 05:35:44 +0200 Subject: [PATCH] network-ups-tools: create /run/ups when service starts --- srcpkgs/network-ups-tools/files/upsd/run | 3 ++- srcpkgs/network-ups-tools/files/upsdrvctl/run | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/srcpkgs/network-ups-tools/files/upsd/run b/srcpkgs/network-ups-tools/files/upsd/run index 0d0dce04fc..53d9ba24a6 100755 --- a/srcpkgs/network-ups-tools/files/upsd/run +++ b/srcpkgs/network-ups-tools/files/upsd/run @@ -1,4 +1,5 @@ #!/bin/sh # Network UPS Tools - information server -# upsmon will run in the foreground and prints information on stdout +# upsd will run in the foreground and prints information on stdout +install -d -m 0770 -o nut -g nut /run/ups exec upsd -D diff --git a/srcpkgs/network-ups-tools/files/upsdrvctl/run b/srcpkgs/network-ups-tools/files/upsdrvctl/run index e7c42e0595..cdc768fc32 100755 --- a/srcpkgs/network-ups-tools/files/upsdrvctl/run +++ b/srcpkgs/network-ups-tools/files/upsdrvctl/run @@ -1,3 +1,4 @@ #!/bin/sh # Network UPS Tools - driver controller +install -d -m 0770 -o nut -g nut /run/ups exec upsdrvctl -D start