Annotation of /mcore-src/trunk/mcore-tools/dracut/run-mcored.sh.in
Parent Directory | Revision Log
Revision 2071 -
(hide annotations)
(download)
(as text)
Wed May 8 16:01:57 2013 UTC (11 years ago) by niro
Original Path: mcore-src/trunk/mcore-tools/dracut/run-mcored.sh
File MIME type: application/x-sh
File size: 480 byte(s)
Wed May 8 16:01:57 2013 UTC (11 years ago) by niro
Original Path: mcore-src/trunk/mcore-tools/dracut/run-mcored.sh
File MIME type: application/x-sh
File size: 480 byte(s)
-dracut-module: honor cmdline with rd.mcored to enable/disable this module. default is enabled
1 | niro | 2042 | #!/bin/sh |
2 | |||
3 | if [ -x /usr/sbin/sslsvd -a -x /usr/sbin/mcored -a -x /usr/sbin/udhcpc -a -f /etc/conf.d/mcored ] | ||
4 | then | ||
5 | niro | 2071 | if getargbool 1 rd.mcored |
6 | then | ||
7 | # setup networking | ||
8 | info "Setup networking" | ||
9 | /usr/sbin/udhcpc eth0 | ||
10 | # print ip config | ||
11 | info "Current ip settings:" | ||
12 | info "$(ip addr)" | ||
13 | # start mcored | ||
14 | info "Starting mcore daemon" | ||
15 | . /etc/conf.d/mcored | ||
16 | /usr/sbin/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \ | ||
17 | -Z ${SSL_CERT} -K ${SSL_KEY} \ | ||
18 | 0 6666 /usr/sbin/mcored | ||
19 | fi | ||
20 | niro | 2042 | fi |