configuration-templates – Blame information for rev 27

Subversion Repositories:
Rev:
Rev Author Line No. Line
27 office 1 ###########################################################################
2 ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
3 ###########################################################################
4  
5 check file smbd_bin with path /usr/sbin/smbd
6 if failed uid root then unmonitor
7 if failed gid root then unmonitor
8 group samba
9  
10 check process smbd with pidfile /var/run/samba/smbd.pid
11 start program = "/etc/init.d/samba restart"
12 stop program = "/etc/init.d/samba stop"
13 if failed host 127.0.0.1 port 139 type TCP then restart
14 # if 5 restarts within 5 cycles then timeout
15 depends on smbd_bin
16 group samba
17  
18 check process nmbd with pidfile /var/run/samba/nmbd.pid
19 group samba
20 start program = "/etc/init.d/samba restart"
21 stop program = "/etc/init.d/samba stop"
22 if failed host 127.0.0.1 port 138 type UDP then restart
23 if failed host 127.0.0.1 port 137 type UDP then restart
24 # if 5 restarts within 5 cycles then timeout
25 depends on nmbd_bin
26  
27 check file nmbd_bin with path /usr/sbin/nmbd
28 group samba
29 if failed checksum then unmonitor
30 if failed permission 755 then unmonitor
31 if failed uid root then unmonitor
32 if failed gid root then unmonitor