File tree 7 files changed +43
-7
lines changed
7 files changed +43
-7
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,13 @@ cd distribution
22
22
### Running
23
23
24
24
```
25
- #start
26
- service orkaudio start
25
+ ##start
26
+ sudo svc -u /etc/service/orkaudio
27
+ # service orkaudio start
27
28
28
- #stop
29
- service orkaudio stop
29
+ ##stop
30
+ sudo svc -d /etc/service/orkaudio
31
+ # service orkaudio stop
30
32
31
33
```
32
34
Original file line number Diff line number Diff line change
1
+ /etc/orkaudio/config.xml
2
+ /etc/orkaudio/logging.properties
Original file line number Diff line number Diff line change 22
22
ldconfig
23
23
24
24
mkdir -p /var/log/orkaudio
25
+ mkdir -p /var/log/orkaudio/svclog
25
26
26
27
echo " Starting orkaudio...."
27
- service orkaudio start || true
28
+ svc -u /etc/service/orkaudio || true
28
29
29
30
fi
30
31
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -x
3
3
4
- service orkaudio stop || true
4
+ svc -d /etc/service/orkaudio || true
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ exec multilog t s99999 n10 /var/log/orkaudio/svclog
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ exec 2>&1
3
+
4
+ exit_script () {
5
+ echo " Shutdown!"
6
+ CHILD_PID=$( cat /var/log/orkaudio/orkaudio.lock)
7
+
8
+ echo " Sending Kill to $CHILD_PID "
9
+ trap - SIGINT SIGTERM # clear the trap
10
+ kill -- $CHILD_PID # Sends SIGTERM to child/sub processes
11
+ }
12
+
13
+ anywait (){
14
+ for pid in " $@ " ; do
15
+ while kill -0 " $pid " ; do
16
+ sleep 2
17
+ done
18
+ done
19
+ }
20
+
21
+ trap exit_script SIGINT SIGTERM
22
+
23
+ # exec chpst -u USER COMMAND
24
+ /usr/sbin/orkaudio
25
+
26
+ # watch on pid
27
+ CHILD_PID=$( cat /var/log/orkaudio/orkaudio.lock)
28
+ while kill -0 $CHILD_PID 2> /dev/null; do sleep 1; done ;
Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ cp /oreka-src/orkaudio/plugins/*.so $BUILD_ROOT/usr/lib/orkaudio/plugins/
19
19
find $BUILD_ROOT -name ' .ignore' -delete
20
20
21
21
sed -i " s/_VERSION_/$VERSION /g" $BUILD_ROOT /DEBIAN/control
22
- dpkg-deb --build $BUILD_ROOT oreka .deb
22
+ dpkg-deb --build $BUILD_ROOT orkaudio .deb
23
23
24
24
rm -rf $BUILD_ROOT
You can’t perform that action at this time.
0 commit comments