Skip to content
Snippets Groups Projects
Commit 30ac780e authored by Julien Leduc's avatar Julien Leduc
Browse files

Resolve "Support quarkDB NS without systemd in CI"

parent 8c62de44
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ echo -n '0 u:daemon g:daemon n:ctaeos+ N:6361884315374059521 c:1481241620 e:0 f:
chown daemon:daemon /var/eos/config/${eoshost}/default.eoscf
# quarkDB only for systemd initially...
cat /etc/config/eos/xrd.cf.mgm | grep mgmofs.nslib | grep -qi eosnsquarkdb && /opt/run/bin/start_quarkdb.sh
cat /etc/config/eos/xrd.cf.mgm | grep mgmofs.nslib | grep -qi eosnsquarkdb && /opt/run/bin/start_quarkdb.sh ${CI_CONTEXT}
# add taped SSS must be in a kubernetes secret
#echo >> /etc/eos.keytab
......
......@@ -15,6 +15,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# the only argument of this script is the CI_CONTEXT passed by ctaeos-mgm.sh
CI_CONTEXT=$1
# I need 2 level of directories for quarkdb:
# /var/lib/<possible PV mount point>/<directory owned by xrootd>
# this way I can either use:
......@@ -47,6 +50,13 @@ cp /etc/eos.keytab /etc/eos.keytab.xrootd
chmod 400 /etc/eos.keytab.xrootd
chown xrootd:xrootd /etc/eos.keytab.xrootd
systemctl start xrootd@quarkdb
if [ "-${CI_CONTEXT}-" == '-systemd-' ]; then
systemctl start xrootd@quarkdb
systemctl status xrootd@quarkdb
systemctl status xrootd@quarkdb
else
# no systemd
XRDPROG=/usr/bin/xrootd; test -e /opt/eos/xrootd/bin/xrootd && XRDPROG=/opt/eos/xrootd/bin/xrootd
${XRDPROG} -n quarkdb -l /var/log/xrootd/xrootd.log -c /etc/xrootd/xrootd-quarkdb.cfg -k fifo -s /var/run/xrootd/xrootd-quarkdb.pid -b -Rxrootd
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment