Contents of /mcore-src/trunk/mcore-tools/dracut/mcored/run-mcored.sh.in
Parent Directory | Revision Log
Revision 2345 -
(show annotations)
(download)
Tue Jul 15 08:09:32 2014 UTC (9 years, 9 months ago) by niro
File size: 1024 byte(s)
Tue Jul 15 08:09:32 2014 UTC (9 years, 9 months ago) by niro
File size: 1024 byte(s)
-removed neednet flag
1 | #!/bin/sh |
2 | |
3 | need_remount=0 |
4 | |
5 | if [ -x @@SBINDIR@@/sslsvd -a -x @@SBINDIR@@/mcored -a -f @@CONFDDIR@@/mcored ] |
6 | then |
7 | if getargbool 1 rd.mcored |
8 | then |
9 | # print ip config |
10 | echo "Current ip settings:" |
11 | info "Current ip settings:" |
12 | echo "$(ip addr)" |
13 | info "$(ip addr)" |
14 | [ -w / ] || need_remount=1 |
15 | if [[ ${need_remount} = 1 ]] |
16 | then |
17 | # remount /sysroot writeable |
18 | echo "Remount /sysroot writeable" |
19 | info "Remount /sysroot writeable" |
20 | mount -oremount,rw /sysroot |
21 | else |
22 | echo "Already a rw filesystem, remount not required" |
23 | info "Already a rw filesystem, remount not required" |
24 | fi |
25 | # start mcored |
26 | echo "Starting mcore daemon" |
27 | info "Starting mcore daemon" |
28 | export MROOT=/sysroot |
29 | . @@CONFDDIR@@/mcored |
30 | @@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \ |
31 | -Z ${SSL_CERT} -K ${SSL_KEY} \ |
32 | 0 6666 @@SBINDIR@@/mcored |
33 | if [[ ${need_remount} = 1 ]] |
34 | then |
35 | # remount sysroot read-only |
36 | echo "Remount /sysroot read-only" |
37 | info "Remount /sysroot read-only" |
38 | mount -oremount,ro /sysroot |
39 | fi |
40 | fi |
41 | fi |