File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
packaging/vendor/multitech/conduit Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ check process chirpstack-gateway-bridge pidfile /var/run/chirpstack-gateway-bridge.pid
2
+ start program = "/bin/bash -c '/etc/init.d/chirpstack-gateway-bridge start'"
3
+ stop program = "/bin/bash -c '/etc/init.d/chirpstack-gateway-bridge stop'"
4
+
Original file line number Diff line number Diff line change @@ -26,7 +26,11 @@ Description: ChirpStack Gateway Bridge
26
26
EOF
27
27
28
28
cat > $PACKAGE_DIR /CONTROL/postinst << EOF
29
+ sed -i "s/ENABLED=.*/ENABLED=\"yes\"/" /etc/default/monit
30
+ update-rc.d monit defaults
31
+ /etc/init.d/monit start
29
32
update-rc.d chirpstack-gateway-bridge defaults
33
+ /usr/bin/monit reload
30
34
EOF
31
35
chmod 755 $PACKAGE_DIR /CONTROL/postinst
32
36
37
41
# Files
38
42
mkdir -p $PACKAGE_DIR /opt/$PACKAGE_NAME
39
43
mkdir -p $PACKAGE_DIR /var/config/$PACKAGE_NAME
44
+ mkdir -p $PACKAGE_DIR /etc/monit.d
40
45
mkdir -p $PACKAGE_DIR /etc/init.d
41
46
42
47
cp files/$PACKAGE_NAME .toml $PACKAGE_DIR /var/config/$PACKAGE_NAME /$PACKAGE_NAME .toml
48
+ cp files/$PACKAGE_NAME .monit $PACKAGE_DIR /etc/monit.d/$PACKAGE_NAME
43
49
cp files/$PACKAGE_NAME .init $PACKAGE_DIR /etc/init.d/$PACKAGE_NAME
44
50
wget -P $PACKAGE_DIR /opt/$PACKAGE_NAME $PACKAGE_URL
45
51
tar zxf $PACKAGE_DIR /opt/$PACKAGE_NAME /* .tar.gz -C $PACKAGE_DIR /opt/$PACKAGE_NAME
You can’t perform that action at this time.
0 commit comments