File tree Expand file tree Collapse file tree 4 files changed +35
-6
lines changed Expand file tree Collapse file tree 4 files changed +35
-6
lines changed Original file line number Diff line number Diff line change 17
17
init : /sbin/init
18
18
run_opts : " "
19
19
playbook : test.yml
20
- - distribution : ubuntu
21
- version : 12.04
22
- init : /sbin/init
23
- run_opts : " "
24
- playbook : test.yml
20
+ # - distribution: ubuntu
21
+ # version: 12.04
22
+ # init: /sbin/init
23
+ # run_opts: ""
24
+ # playbook: test.yml
25
25
26
26
services :
27
27
- docker
@@ -70,4 +70,4 @@ script:
70
70
|| (echo 'MySQL not running' && exit 1)
71
71
72
72
# Clean up
73
- - ' sudo docker stop "$(cat ${container_id})"'
73
+ - sudo docker stop "$(cat ${container_id})"
Original file line number Diff line number Diff line change @@ -7,5 +7,8 @@ RUN apt-add-repository -y ppa:ansible/ansible
7
7
RUN apt-get update
8
8
RUN apt-get install -y ansible
9
9
10
+ COPY initctl_faker .
11
+ RUN chmod +x initctl_faker && rm -fr /sbin/initctl && ln -s /initctl_faker /sbin/initctl
12
+
10
13
# Install Ansible inventory file
11
14
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
Original file line number Diff line number Diff line change @@ -7,5 +7,8 @@ RUN apt-add-repository -y ppa:ansible/ansible
7
7
RUN apt-get update
8
8
RUN apt-get install -y ansible
9
9
10
+ COPY initctl_faker .
11
+ RUN chmod +x initctl_faker && rm -fr /sbin/initctl && ln -s /initctl_faker /sbin/initctl
12
+
10
13
# Install Ansible inventory file
11
14
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ ALIAS_CMD=" $( echo " " $0 " " | sed -e ' s?/sbin/??' ) "
3
+
4
+ case " $ALIAS_CMD " in
5
+ start|stop|restart|reload|status)
6
+ exec service $1 $ALIAS_CMD
7
+ ;;
8
+ esac
9
+
10
+ case " $1 " in
11
+ list )
12
+ exec service --status-all
13
+ ;;
14
+ reload-configuration )
15
+ exec service $2 restart
16
+ ;;
17
+ start|stop|restart|reload|status)
18
+ exec service $2 $1
19
+ ;;
20
+ \? )
21
+ exit 0
22
+ ;;
23
+ esac
You can’t perform that action at this time.
0 commit comments