Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ script:
"cd /var/tmp &&
yum install -y tar make rpm-build python2-devel python-setuptools &&
make rpm && rpm -i mamonsu*.rpm &&
/etc/init.d/mamonsu restart"
/etc/init.d/mamonsu restart &&
yum remove -y mamonsu"
# deb build
- >
docker run -v $(pwd):/var/tmp debian:6 bash -c
Expand All @@ -32,4 +33,5 @@ script:
echo package mamonsu/log_level string 'INFO' | debconf-set-selections &&
apt-get install -y make dpkg-dev debhelper python-dev python-setuptools &&
make deb && dpkg -i mamonsu*.deb &&
/etc/init.d/mamonsu restart"
/etc/init.d/mamonsu restart &&
apt-get purge -y mamonsu"
2 changes: 1 addition & 1 deletion debian/init
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ start() {
stop() {
if [ ! -f "$PIDFILE" ] || ! kill -0 $(cat "$PIDFILE"); then
echo 'Service not running' >&2
return 1
return 0
fi
echo -n 'Stopping service' >&2
kill -15 $(cat "$PIDFILE") && rm -f "$PIDFILE"
Expand Down
2 changes: 1 addition & 1 deletion rpm/SOURCES/mamonsu.init
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUNAS=mamonsu
start() {
if [ -f $PIDFILE ] && kill -0 $(cat $PIDFILE); then
echo 'Service already running' >&2
return 1
return 0
fi
echo -n 'Starting service' >&2
su -c "$COMMAND" $RUNAS -s /bin/sh &
Expand Down