git.samba.org
/
tridge
/
autocluster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0f061c
)
Initial RHEL 7 service enable/disable file
author
Martin Schwenke
<martin@meltin.net>
Mon, 16 Jun 2014 10:15:03 +0000
(20:15 +1000)
committer
Martin Schwenke
<martin@meltin.net>
Wed, 25 Jun 2014 10:46:15 +0000
(20:46 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
templates/RHEL7.services
[new file with mode: 0644]
patch
|
blob
diff --git a/templates/RHEL7.services
b/templates/RHEL7.services
new file mode 100644
(file)
index 0000000..
8874a02
--- /dev/null
+++ b/
templates/RHEL7.services
@@ -0,0
+1,19
@@
+echo "Turn off some services..."
+
+while read s ; do
+ systemctl disable "${s}.service"
+done <<EOF
+atd
+avahi-daemon
+nfslock
+EOF
+
+chkconfig rhnsd off
+
+echo "Turn on some services..."
+
+while read s ; do
+ systemctl enable "${s}.service"
+done <<EOF
+multipathd
+EOF