Skip to content

Commit

Permalink
clusterd: Merge pull request #1 from mariux64/master
Browse files Browse the repository at this point in the history
unter die knute des bee
donald committed Apr 20, 2016
2 parents dad756e + ddc8cef commit 84fbb14
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion clusterd/Makefile
Original file line number Diff line number Diff line change
@@ -8,7 +8,8 @@ all:
install: clusterd clusterd.service
install -d ${DESTDIR}${SBINDIR}
install -m 755 clusterd ${DESTDIR}${SBINDIR}/clusterd
install -d ${DESTDIR}/etc/systemd/system/
install -m 644 clusterd.service ${DESTDIR}/etc/systemd/system/clusterd.service

restart: install
restart:
systemctl restart clusterd.service
2 changes: 1 addition & 1 deletion clusterd/clusterd
Original file line number Diff line number Diff line change
@@ -751,7 +751,7 @@ sub udp_rx_restart {
if (defined $pid && $pid==0) {
my $pid2=fork;
if (defined $pid2 && $pid==0) {
exec '/sbin/clusterd','--kill','--daemon';
exec '/usr/sbin/clusterd','--kill','--daemon';
die "exec failed: $!\n";
}
}
8 changes: 8 additions & 0 deletions clusterd/mkbee.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
VERSION=`grep -Po "(?<=Revision:\s)(\S+)" clusterd`
PACKAGE=clusterd-${VERSION}
DOWNLOADS=/src/mariux/beeroot/downloads
cd ..
tar zcvf ${DOWNLOADS}/${PACKAGE}.tgz clusterd
bee init ${DOWNLOADS}/${PACKAGE}.tgz -f
./${PACKAGE}-0.bee -c

0 comments on commit 84fbb14

Please sign in to comment.