summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.file.tmp.m4
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-08-06 13:26:01 +0000
committerJonas Smedegaard <dr@jones.dk>2002-08-06 13:26:01 +0000
commita1644e76086720fedf51ff7b9992dbd87f886512 (patch)
tree8f3ca75a9b1da427451711179f4a26ce9e6cc821 /cfengine/cf.services.file.tmp.m4
parent022397d4cc6583183d0a2f7f694b1b064d211d37 (diff)
cfengine: complete m4-cfengine script.
Diffstat (limited to 'cfengine/cf.services.file.tmp.m4')
-rw-r--r--cfengine/cf.services.file.tmp.m420
1 files changed, 3 insertions, 17 deletions
diff --git a/cfengine/cf.services.file.tmp.m4 b/cfengine/cf.services.file.tmp.m4
index 732f746..72f94b2 100644
--- a/cfengine/cf.services.file.tmp.m4
+++ b/cfengine/cf.services.file.tmp.m4
@@ -2,7 +2,7 @@ ifelse(`
/etc/cfengine/cf.services.file.tmp.m4
Copyright 2002 Jonas Smedegaard <dr@jones.dk>
-$Id: cf.services.file.tmp.m4,v 1.2 2002-08-04 23:31:46 jonas Exp $
+$Id: cf.services.file.tmp.m4,v 1.3 2002-08-06 13:26:01 jonas Exp $
cfengine m4 skeleton file for cleaning up Samba and Netatalk shares
@@ -40,26 +40,12 @@ define(_dir,_tab$2
group=$4
)dnl
define(_homefiles,`')dnl
+define(_printer,`')dnl
define(_files,_dir($1,$4,$5,$6,$7))dnl
control:
AddInstallable = ( samba samba_reload netatalk netatalk_reload )
- samba_reload::
- { /etc/samba/smb-shares-$(fqdn).conf
- LocateLineMatching "^; EDITED BY CFENGINE .*"
- ReplaceAll '; EDITED BY CFENGINE .*$' With '; EDITED BY CFENGINE $(date)'
- CatchAbort
- BeginGroupIfNoMatch "^; EDITED BY CFENGINE .*"
- Append '; EDITED BY CFENGINE $(date)'
- EndGroup
- }
+ actionsequence = ( directories )
directories:
include(/etc/local-COMMON/file-FQDN.m4)dnl
-
-processes:
- "smbd" restart "/etc/init.d/samba restart"
-
-shellcommands:
- samba_reload::
- "/etc/init.d/samba force-reload"