FreeBSD Bugzilla – Attachment 177087 Details for
Bug 212282
sysutils/bareos-server: director fails to start on reboot with /var/run on tmpfs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patchset for making /var/run on TMPFS possible
bareos-rc.patch (text/plain), 1.56 KB, created by
O. Hartmann
on 2016-11-16 20:17:57 UTC
(
hide
)
Description:
Patchset for making /var/run on TMPFS possible
Filename:
MIME Type:
Creator:
O. Hartmann
Created:
2016-11-16 20:17:57 UTC
Size:
1.56 KB
patch
obsolete
>Index: sysutils/bareos-server/files/bareos-dir.in >=================================================================== >--- sysutils/bareos-server/files/bareos-dir.in (revision 426261) >+++ sysutils/bareos-server/files/bareos-dir.in (working copy) >@@ -39,4 +39,8 @@ > eval ${command} ${bareos_dir_flags} -t > } > >+start_precmd() { >+ [ -d "${pidfile%/*}" ] || install -d -o bareos -g bareos ${pidfile%/*} >+} >+ > run_rc_command "$1" >Index: sysutils/bareos-server/files/bareos-fd.in >=================================================================== >--- sysutils/bareos-server/files/bareos-fd.in (revision 426261) >+++ sysutils/bareos-server/files/bareos-fd.in (working copy) >@@ -31,4 +31,20 @@ > 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" >Index: sysutils/bareos-server/files/bareos-sd.in >=================================================================== >--- sysutils/bareos-server/files/bareos-sd.in (revision 426261) >+++ sysutils/bareos-server/files/bareos-sd.in (working copy) >@@ -29,6 +29,11 @@ > > 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"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212282
:
174252
|
174279
|
174296
| 177087