98 |
fi |
fi |
99 |
} |
} |
100 |
|
|
|
|
|
101 |
# adds systemd units to runlevels and starts them |
# adds systemd units to runlevels and starts them |
102 |
# mstartunit service {/path/to/service_exec} |
# mstartunit service {/path/to/service_exec} |
103 |
mstartunit() |
mstartunit() |
240 |
esac |
esac |
241 |
fi |
fi |
242 |
|
|
243 |
|
# reload daemon to honor changed unit files |
244 |
|
systemctl daemon-reload |
245 |
|
|
246 |
# do not stop services on bootstrap or MROOT!=/ |
# do not stop services on bootstrap or MROOT!=/ |
247 |
if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
248 |
then |
then |