- Fix start when /var/run is on TMPFS

- Bump PORTREVISION

PR:		212282
Submitted by:	O. Hartmann ohartmann (_at_) walstatt.org
This commit is contained in:
Jose Alonso Cardenas Marquez 2016-11-21 20:59:10 +00:00
parent 61f6fb1d04
commit 906b2065e8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426754
6 changed files with 25 additions and 4 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= bareos
PORTREVISION= 0
PORTREVISION= 1
PKGNAMESUFFIX= -client-static
COMMENT= Backup archiving recovery open sourced (static client)

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= bareos
PORTREVISION= 0
PORTREVISION= 1
PKGNAMESUFFIX= -client
COMMENT= Backup archiving recovery open sourced (client)

View file

@ -4,7 +4,7 @@
PORTNAME= bareos
DISTVERSIONPREFIX= Release/
DISTVERSION= 16.2.4
#PORTREVISION?= 0
PORTREVISION?= 1
CATEGORIES?= sysutils
PKGNAMEPREFIX?= #
PKGNAMESUFFIX?= -server

View file

@ -39,4 +39,8 @@ bareos_dir_testconfig()
eval ${command} ${bareos_dir_flags} -t
}
start_precmd() {
[ -d "${pidfile%/*}" ] || install -d -o bareos -g bareos ${pidfile%/*}
}
run_rc_command "$1"

View file

@ -31,4 +31,17 @@ command=%%PREFIX%%/sbin/bareos-fd
command_args="-c ${bareos_fd_config}"
pidfile="${bareos_fd_pidfile}"
start_precmd() {
[ -d "${pidfile%/*}" ] || {
getent passwd bareos > /dev/null 2&>1
if [ $? -eq 0] ; then
# user bareos exists
install -d -o bareos -g bareos ${pidfile%/*}
else
# bareos_fd as solitair service
install -d -o root -g wheel ${pidfile%/*}
fi
}
}
run_rc_command "$1"

View file

@ -29,6 +29,10 @@ load_rc_config $name
command=%%PREFIX%%/sbin/bareos-sd
command_args="-c ${bareos_sd_config}"
pidfile="${bacula_sd_pidfile}"
pidfile="${bareos_sd_pidfile}"
start_precmd() {
[ -d "${pidfile%/*}" ] || install -d -o bareos -g bareos ${pidfile%/*}
}
run_rc_command "$1"