#!/bin/sh if ! type "shInclude" > /dev/null; then racine="${racine:-/etc/darksrv}" . $racine/lib-sh/shTools shDebugEnable="1" shDebug "$*" fi darkcontainer="${darkcontainer:-/etc/darkcontainer}" shDebug "[ INFO ] $racine/chroot/lib-sh/chroot && $racine/systemctl/lib-sh/systemctl && shInclude $racine/rsyslog/lib-sh/rsyslog" $(shInclude ${darkcontainer}/chroot/lib-sh/chroot) && $(shInclude ${darkcontainer}/systemctl/lib-sh/systemctl) && $(shInclude ${darkcontainer}/rsyslog/lib-sh/rsyslog) #|-----------------------------------------------------------------------| #| which "directory" tools : mkdir | chmod | chgrp | mount | umount | #|-----------------------------------------------------------------------| shDebug "[ INFO ] $racine/which/lib-sh/directory" $(shInclude $racine/which/lib-sh/directory) ##for subService in icecast-serverd icecast-serverd6;do # shDebug "[ INFO $subService ] $racine/icecast-server/global/vars" ## pName="$subService" # pCacheDir="${pCacheDir:-/var/cache/icecast-server}" # pChrootDir="${pChrootDir:-/srv/$pName}" # pDebugFile="${pDebugFile:-/etc/darksrv/icecast-server/data/debug-$pName}" # pIdFile="${pIdFile:-/var/run/icecast-server/icecast-serverd.pid}" # leaseFile="${leaseFile:-/var/run/icecast-server/icecast-serverd.leases}" # confFile="${confFile:-/etc/darksrv/icecast-server/data/$subService.conf}" . $racine/icecast-server/global/vars shLog="$pName-install:" # $(shInclude $racine/icecast-server/global/vars) shLog="$shLog"\ pName="$pName"\ pServiceInfo="$pServiceInfo" pServiceDoc="$pServiceDoc"\ cmdDaemon="$cmdDaemon" cmdDaemonFull="$cmdDaemonFull"\ pSystemCtlWants="$pSystemCtlWants" pSystemCtlBefore="$pSystemCtlBefore" pSystemCtlAfter="$pSystemCtlAfter"\ #pInitVRequiredStart="bakuba-named-int" pInitVRequiredStop="bakuba-named-int"\ pInitVRequiredStart="$pInitVRequiredStart" pInitVRequiredStop="$pInitVRequiredStop"\ pInitVShouldStart="$pInitVShouldStart" pInitVShouldStop="$pInitVShouldStop"\ pInitVDefaultStart="$pInitVDefaultStart" pInitVDefaultStop="$pInitVDefaultStop"\ pUser="$pUser" pGroup="$pGroup"\ pChrootDir="$pChrootDir" pDebugFile="$pDebugFile" pMountFolders="$pMountFolders"\ pIdFile="$pIdFile" pCacheDir="$pCacheDir"\ pParamStart="$pParamStart" pParamStartDebug="$pParamStartDebug"\ pStart="$pStart" pPreStart="$pPreStart"\ pLibFiles="$pLibFiles" pLibFolders="$pLibFolders" pDirStruct="$pDirStruct" pCopyLib="$pCopyLib" pDirUserGroupRight="$pDirUserGroupRight"\ $(which sh) $racine/bakuba/bin/service_install # $racine/services/bin/install