supervisord config for samba and cups.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
FIX file mask for share_info.tdb must be 666
This commit is contained in:
@@ -114,6 +114,9 @@ if [ ! -f /var/lib/samba/private/secrets.tdb ]; then
|
|||||||
echo "Joining domain using net ads"
|
echo "Joining domain using net ads"
|
||||||
mkdir -p /var/lib/samba/private
|
mkdir -p /var/lib/samba/private
|
||||||
net ads join -U"$ADMIN_ACCOUNT"%"$ADMIN_PASSWORD"
|
net ads join -U"$ADMIN_ACCOUNT"%"$ADMIN_PASSWORD"
|
||||||
|
|
||||||
|
# Shares are not visible otherwise
|
||||||
|
chmod 666 /var/lib/samba/share_info.tdb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 'Restarting Samba using supervisord'
|
echo 'Restarting Samba using supervisord'
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
[supervisord]
|
[supervisord]
|
||||||
nodaemon=true
|
nodaemon=true
|
||||||
loglevel=info
|
loglevel=info
|
||||||
|
user=root
|
||||||
|
|
||||||
[program:smbd]
|
[program:smbd]
|
||||||
command=/usr/sbin/smbd --foreground
|
command=/usr/sbin/smbd --foreground --no-process-group
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
@@ -11,9 +12,14 @@ stderr_logfile=/dev/stderr
|
|||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
|
|
||||||
[program:nmbd]
|
[program:nmbd]
|
||||||
command=/usr/sbin/nmbd --foreground
|
command=/usr/sbin/nmbd --foreground --no-process-group
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
|
|
||||||
[program:winbind]
|
[program:winbind]
|
||||||
command=/usr/sbin/winbindd
|
command=/usr/sbin/winbindd --foreground --no-process-group
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
|
|
||||||
|
[program:cups]
|
||||||
|
command=/usr/sbin/cupsd -f
|
||||||
|
redirect_stderr=true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user