Skip to content

Commit

Permalink
Fix: Supervisord Error and Warning by 3kami3
Browse files Browse the repository at this point in the history
  • Loading branch information
kapdap committed Nov 13, 2024
1 parent fb1c83c commit 1445e0c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,17 @@ appSetup () {

# Set up supervisor
echo "[supervisord]" > /etc/supervisor/conf.d/supervisord.conf
echo "user=root" >> /etc/supervisor/conf.d/supervisord.conf
echo "nodaemon=true" >> /etc/supervisor/conf.d/supervisord.conf
echo "" >> /etc/supervisor/conf.d/supervisord.conf
echo "[program:ntpd]" >> /etc/supervisor/conf.d/supervisord.conf
echo "command=/usr/sbin/ntpd -c /etc/ntpd.conf -n" >> /etc/supervisor/conf.d/supervisord.conf
echo "[program:samba]" >> /etc/supervisor/conf.d/supervisord.conf
echo "command=/usr/sbin/samba -i" >> /etc/supervisor/conf.d/supervisord.conf
echo "[unix_http_server]" >> /etc/supervisor/conf.d/supervisord.conf
echo "username=dummy" >> /etc/supervisor/conf.d/supervisord.conf
echo "password=dummy" >> /etc/supervisor/conf.d/supervisord.conf
echo "file=/run/supervisord.sock" >> /etc/supervisor/conf.d/supervisord.conf
if [[ ${MULTISITE,,} == "true" ]]; then
if [[ -n $VPNPID ]]; then
kill $VPNPID
Expand Down Expand Up @@ -172,7 +177,7 @@ schemaIDGUID:: +8nFQ43rpkWTOgbCCcSkqA==" > /tmp/Sshpubkey.class.ldif
}

appStart () {
/usr/bin/supervisord > /var/log/supervisor/supervisor.log 2>&1 &
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf > /var/log/supervisor/supervisor.log 2>&1 &
if [ "${1}" = "true" ]; then
echo "Sleeping 10 before checking on Domain Users of gid 3000000 and setting up sshPublicKey"
sleep 10
Expand Down

0 comments on commit 1445e0c

Please sign in to comment.