Skip to content

Commit

Permalink
Changed Type to 'notify' in /etc/systemd/system/redis.service
Browse files Browse the repository at this point in the history
  • Loading branch information
greiginsydney authored Nov 28, 2020
1 parent 298a677 commit 35714aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Raspberry Pi/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,13 @@ install_website ()
fi
fi

if grep -q "^Type=notify$" /etc/systemd/system/redis.service;
then
echo 'Skipped: "/etc/systemd/system/redis.service" already contains "Type=notify"'
else
sed -i --follow-symlinks 's|^Type=.*|Type=notify|'g /etc/systemd/system/redis.service
fi

if grep -q "^daemonize yes$" /etc/redis/redis.conf;
then
echo 'Skipped: "/etc/redis/redis.conf" already contains "daemonize yes"'
Expand Down

0 comments on commit 35714aa

Please sign in to comment.