Annotation of /mcore-src/trunk/mcore-tools/dracut/mcored/run-mcored.sh.in
Parent Directory | Revision Log
Revision 2297 -
(hide annotations)
(download)
Mon Jan 20 10:11:41 2014 UTC (10 years, 3 months ago) by niro
Original Path: mcore-src/trunk/mcore-tools/dracut/run-mcored.sh.in
File size: 612 byte(s)
Mon Jan 20 10:11:41 2014 UTC (10 years, 3 months ago) by niro
Original Path: mcore-src/trunk/mcore-tools/dracut/run-mcored.sh.in
File size: 612 byte(s)
-use network module instead of brewing our own stuff here
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 | 2071 | if getargbool 1 rd.mcored |
6 | 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 | info "Starting mcore daemon" | ||
15 | export MROOT=/sysroot | ||
16 | . @@CONFDDIR@@/mcored | ||
17 | @@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \ | ||
18 | -Z ${SSL_CERT} -K ${SSL_KEY} \ | ||
19 | 0 6666 @@SBINDIR@@/mcored | ||
20 | # remount sysroot read-only | ||
21 | info "Remount /sysroot read-only" | ||
22 | mount -oremount,ro /sysroot | ||
23 | niro | 2071 | fi |
24 | niro | 2042 | fi |