@@ -75,14 +75,14 @@ TaskKey[Unit]("check-spec-file") <<= (target, streams) map { (target, out) =>
75
75
|addService() {
76
76
| app_name=$1
77
77
| if hash update-rc.d >/dev/null 2>&1; then
78
- | echo "Adding $app_name to service management using update-rc.d"
79
- | update-rc.d $app_name defaults
78
+ | echo "Adding $app_name to service management using update-rc.d"
79
+ | update-rc.d $app_name defaults
80
80
| elif hash chkconfig >/dev/null 2>&1; then
81
- | echo "Adding $app_name to service management using chkconfig"
82
- | chkconfig --add rpm-test
83
- | chkconfig $app_name on
81
+ | echo "Adding $app_name to service management using chkconfig"
82
+ | chkconfig --add rpm-test
83
+ | chkconfig $app_name on
84
84
| else
85
- | echo "WARNING: Could not add $app_name to autostart: neither update-rc nor chkconfig found!"
85
+ | echo "WARNING: Could not add $app_name to autostart: neither update-rc nor chkconfig found!"
86
86
| fi
87
87
|}
88
88
|""" .stripMargin,
@@ -112,16 +112,16 @@ TaskKey[Unit]("check-spec-file") <<= (target, streams) map { (target, out) =>
112
112
|stopService() {
113
113
| app_name=$1
114
114
| if hash update-rc.d >/dev/null 2>&1; then
115
- | echo "Removing $app_name from autostart using update-rc.d"
116
- | update-rc.d -f $app_name remove
117
- | service $app_name stop
115
+ | echo "Removing $app_name from autostart using update-rc.d"
116
+ | update-rc.d -f $app_name remove
117
+ | service $app_name stop
118
118
| elif hash chkconfig >/dev/null 2>&1; then
119
- | echo "Removing $app_name from autostart using chkconfig"
120
- | chkconfig $app_name off
121
- | chkconfig --del $app_name
122
- | service $app_name stop
119
+ | echo "Removing $app_name from autostart using chkconfig"
120
+ | chkconfig $app_name off
121
+ | chkconfig --del $app_name
122
+ | service $app_name stop
123
123
| else
124
- | echo "WARNING: Could not remove $app_name from autostart: neither update-rc nor chkconfig found!"
124
+ | echo "WARNING: Could not remove $app_name from autostart: neither update-rc nor chkconfig found!"
125
125
| fi
126
126
|}
127
127
|""" .stripMargin,
@@ -135,8 +135,8 @@ TaskKey[Unit]("check-spec-file") <<= (target, streams) map { (target, out) =>
135
135
|# $1 = service name
136
136
|#
137
137
|restartService() {
138
- | app_name=$1
139
- | service $app_name restart
138
+ | app_name=$1
139
+ | service $app_name restart
140
140
|}
141
141
|""" .stripMargin,
142
142
" rpm restartService() scriptlet is missing or incorrect"
0 commit comments