Annotation of /mcore-src/trunk/mcore-tools/dracut/run-mcored.sh.in
Parent Directory | Revision Log
Revision 2321 -
(hide annotations)
(download)
Fri Jul 11 12:48:05 2014 UTC (9 years, 10 months ago) by niro
File size: 683 byte(s)
Fri Jul 11 12:48:05 2014 UTC (9 years, 10 months ago) by niro
File size: 683 byte(s)
-print a noisy message if mcored was started
1 | niro | 2042 | #!/bin/sh |
2 | |||
3 | niro | 2297 | if [ -x @@SBINDIR@@/sslsvd -a -x @@SBINDIR@@/mcored -a -f @@CONFDDIR@@/mcored ] |
4 | niro | 2042 | then |
5 | niro | 2298 | if getargbool 1 rd.mcored && getargbool 0 rd.neednet && NEEDNET=1 |
6 | niro | 2071 | then |
7 | niro | 2297 | # print ip config |
8 | info "Current ip settings:" | ||
9 | info "$(ip addr)" | ||
10 | # remont /sysroot writeable | ||
11 | info "Remount /sysroot writeable" | ||
12 | mount -oremount,rw /sysroot | ||
13 | # start mcored | ||
14 | niro | 2321 | echo "Starting mcore daemon" |
15 | niro | 2297 | info "Starting mcore daemon" |
16 | export MROOT=/sysroot | ||
17 | . @@CONFDDIR@@/mcored | ||
18 | @@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \ | ||
19 | -Z ${SSL_CERT} -K ${SSL_KEY} \ | ||
20 | 0 6666 @@SBINDIR@@/mcored | ||
21 | # remount sysroot read-only | ||
22 | info "Remount /sysroot read-only" | ||
23 | mount -oremount,ro /sysroot | ||
24 | niro | 2071 | fi |
25 | niro | 2042 | fi |