Move pidfiles from /var/run/nut to /run/nut, there is nothing else to do since /var/run is a symlink to /run for some times now (policy 3.9.3)
This commit is contained in:
parent
b493284ac5
commit
b11ef489f7
8 changed files with 26 additions and 24 deletions
4
debian/nut-server.init
vendored
4
debian/nut-server.init
vendored
|
|
@ -18,7 +18,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
|
|||
NAME=nut-server
|
||||
DESC="NUT - power devices information server and drivers"
|
||||
CONFIG=/etc/nut/nut.conf
|
||||
pid_dir=/var/run/nut
|
||||
pid_dir=/run/nut
|
||||
upsd_pid=${pid_dir}/upsd.pid
|
||||
upsd=/sbin/upsd
|
||||
upsdrvctl=/sbin/upsdrvctl
|
||||
|
|
@ -48,7 +48,7 @@ if [ "x$MODE" = "xnone" -o -z "$MODE" ] ; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
# Check if /var/run/nut exists and has the correct perms
|
||||
# Check if /run/nut exists and has the correct perms
|
||||
check_var_directory() {
|
||||
[ ! -d ${pid_dir} ] && mkdir -p ${pid_dir} \
|
||||
&& chown root:nut ${pid_dir} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue