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"
|
||||
mkdir -p /var/lib/samba/private
|
||||
net ads join -U"$ADMIN_ACCOUNT"%"$ADMIN_PASSWORD"
|
||||
|
||||
# Shares are not visible otherwise
|
||||
chmod 666 /var/lib/samba/share_info.tdb
|
||||
fi
|
||||
|
||||
echo 'Restarting Samba using supervisord'
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
loglevel=info
|
||||
user=root
|
||||
|
||||
[program:smbd]
|
||||
command=/usr/sbin/smbd --foreground
|
||||
command=/usr/sbin/smbd --foreground --no-process-group
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
@@ -11,9 +12,14 @@ stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
|
||||
[program:nmbd]
|
||||
command=/usr/sbin/nmbd --foreground
|
||||
command=/usr/sbin/nmbd --foreground --no-process-group
|
||||
redirect_stderr=true
|
||||
|
||||
[program:winbind]
|
||||
command=/usr/sbin/winbindd
|
||||
command=/usr/sbin/winbindd --foreground --no-process-group
|
||||
redirect_stderr=true
|
||||
|
||||
[program:cups]
|
||||
command=/usr/sbin/cupsd -f
|
||||
redirect_stderr=true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user