Skip to content
Snippets Groups Projects
Commit d50598f2 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

add skeleton

parent ca3f3086
No related branches found
No related tags found
No related merge requests found
VERBOSITY=0
LIVE=/run/66
PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin
TREE=boot
RCINIT=/etc/66/rc.init
RCSHUTDOWN=/etc/66/rc.shutdown
UMASK=0022
RESCAN=0
ISHELL=/etc/66/ishell
#!@BINDIR@/sh -e
exec 0>/dev/console
exec 1>/dev/console
exec 2>&1
echo "trying to run a sulogin command"
exec s6-setsid -q -- sulogin
#!@BINDIR@/sh -e
## It's the responsability of the sysadmin to properly define
## the configuration file. By default /etc/66/boot.conf or
## instructed by 66-boot via the -f option.
CONF="$1"
source "$conf"
echo [Starting stage2 process ...] 1>/dev/console
# initiate the database service
echo [Initiate db of tree ${TREE}]
66-init -v${VERBOSITY} -l ${LIVE} -t ${TREE} database ||
{ echo "rc.init: fatal: please see the log at ${LIVE}/log/0/current" ; ${ISHELL} ; exit 111 ; }
# start the database service
echo [Start db services of tree ${TREE}]
66-dbctl -v${VERBOSITY} -l ${LIVE} -t ${TREE} -u ||
{ echo "rc.init: fatal: please see the log at ${LIVE}/log/0/current" ; ${ISHELL} ; exit 111 ; }
#!@BINDIR@/sh -e
## It's the responsability of the sysadmin to properly define
## the configuration file. By default /etc/66/boot.conf or
## instructed by 66-boot via the -f option.
CONF="$1"
source "$conf"
echo [Starting rc.shutdown process ...]
echo [Stop all services of tree ${TREE}]
66-all -v${VERBOSITY} -l ${LIVE} -t ${TREE} -f down || exit 111
echo [rc.shutdown completed successfully]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment