Skip to content

Commit

Permalink
systemd bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmcatee committed Oct 2, 2019
1 parent 79d1fb9 commit 857b546
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions build/queued/afterinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ if [ -f $SSLDIR/cracklord_ca_ssl.conf -a -f $SSLDIR/cracklord_queued_ssl.conf -a
fi

# Remove requests and config files
rm -r /etc/cracklord/ssl/*.csr
rm -r /etc/cracklord/ssl/*.csr >/dev/null 2>&1 || true
fi

# Set to startup on boot
systemctl enable cracklord-queued
if [ ! -f /etc/systemd/system/cracklord-queued.service ]; then
systemctl enable cracklord-queued
fi

systemctl restart cracklord-queued
4 changes: 3 additions & 1 deletion build/resourced/afterinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ if [ -d /var/log/cracklord ]; then
chown -R cracklord:cracklord /var/log/cracklord
fi

systemctl enable cracklord-resourced
if [ ! -f /etc/systemd/system/cracklord-resourced.service ]; then
systemctl enable cracklord-resourced
fi

systemctl restart cracklord-resourced

0 comments on commit 857b546

Please sign in to comment.