add a meta rc.d script for bacula, modelled after samba's, to start and
stop the various daemons together in order suggested by upstream's scripts. ok ajacoutot@
This commit is contained in:
parent
1c9c6b05d9
commit
b468cf0d0b
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.58 2013/04/12 10:39:04 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.59 2013/05/03 18:40:32 sthen Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -7,6 +7,7 @@ COMMENT-server= network backup solution (server)
|
||||
COMMENT-bat= network backup solution (gui-client)
|
||||
|
||||
V= 5.2.13
|
||||
REVISION-main= 0
|
||||
DISTNAME= bacula-$V
|
||||
FULLPKGNAME-main= bacula-client-$V
|
||||
FULLPKGPATH-main= ${PKGPATH},-main
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.16 2013/01/11 22:15:31 sthen Exp $
|
||||
@comment $OpenBSD: PLIST-main,v 1.17 2013/05/03 18:40:32 sthen Exp $
|
||||
@conflict bacula-server-<5.2.1
|
||||
@pkgpath sysutils/bacula,-client
|
||||
@newgroup _bacula:591
|
||||
@ -59,3 +59,4 @@ share/examples/bacula/bconsole.conf
|
||||
@mode
|
||||
@group
|
||||
@rcscript ${RCDIR}/bacula_fd
|
||||
@rcscript ${RCDIR}/bacula
|
||||
|
16
sysutils/bacula/pkg/bacula.rc
Normal file
16
sysutils/bacula/pkg/bacula.rc
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: bacula.rc,v 1.1 2013/05/03 18:40:32 sthen Exp $
|
||||
|
||||
# "meta" script running the following rc.d(8) scripts with the given argument;
|
||||
# note that daemon_flags, daemon_user and daemon_class are not passed to
|
||||
# the child scripts.
|
||||
|
||||
if [ "$1" = stop ]; then
|
||||
# stop the FD first so that SD will fail jobs and update catalog
|
||||
_pkg_scripts="bacula_fd bacula_sd bacula_dir"
|
||||
else
|
||||
_pkg_scripts="bacula_sd bacula_fd bacula_dir"
|
||||
fi
|
||||
|
||||
for _i in ${_pkg_scripts}; do [[ -x ${RCDIR}/${_i} ]] && ${RCDIR}/${_i} $1; done
|
Loading…
Reference in New Issue
Block a user