Skip to content

Commit

Permalink
Bugfix: default for 'daemon_niceness' config was not properly applied…
Browse files Browse the repository at this point in the history
…, preventing the service from starting

Fixes #258
  • Loading branch information
gboudreau committed Feb 6, 2021
1 parent 45cd3e0 commit 90cae80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions initd_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ status () {

daemon_start () {
n=$(/usr/bin/greyhole --config daemon_niceness)
if [ "$n" = "" ]; then
n=0
if [ "$n" = "false" ]; then
n=1
fi
nice -n $n /usr/bin/greyhole --daemon > /dev/null &
RETVAL=$?
Expand All @@ -69,8 +69,8 @@ start () {
printf "Starting Greyhole ... "
status && echo "greyhole already running." && return 0
n=$(/usr/bin/greyhole --config daemon_niceness)
if [ "$n" = "" ]; then
n=0
if [ "$n" = "false" ]; then
n=1
fi
/usr/bin/greyhole --test-config > /dev/null
TESTRESULT=$?
Expand Down
4 changes: 2 additions & 2 deletions upstart.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ end script

script
n=$(/usr/bin/greyhole --config daemon_niceness)
if [ "$n" = "" ]; then
n=0
if [ "$n" = "false" ]; then
n=1
fi
nice -n $n /usr/bin/greyhole --daemon
end script
Expand Down

0 comments on commit 90cae80

Please sign in to comment.