Merge branch 'v1.1'

This commit is contained in:
AJ ONeal 2017-11-07 16:02:07 -07:00
commit dd035219a3
4 changed files with 9 additions and 12 deletions

View File

@ -51,7 +51,7 @@ npm install -g goldilocks@v1
### Uninstall ### Uninstall
``` ```
rm -rf /srv/goldilocks/ /var/goldilocks/ /etc/goldilocks/ /opt/goldilocks/ /var/log/goldilocks/ /etc/tmpfiles.d/goldilocks.service /etc/systemd/system/goldilocks.service rm -rf /srv/goldilocks/ /var/goldilocks/ /etc/goldilocks/ /opt/goldilocks/ /var/log/goldilocks/ /etc/tmpfiles.d/goldilocks.conf /etc/systemd/system/goldilocks.service /etc/ssl/goldilocks
``` ```
Usage Usage

View File

@ -2,9 +2,4 @@
# See https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html # See https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
# Type Path Mode UID GID Age Argument # Type Path Mode UID GID Age Argument
#d /etc/goldilocks 0755 MY_USER MY_GROUP - -
#d /opt/goldilocks 0775 MY_USER MY_GROUP - -
#d /srv/www 0775 MY_USER MY_GROUP - -
#d /etc/ssl/goldilocks 0750 MY_USER MY_GROUP - -
#d /var/log/goldilocks 0750 MY_USER MY_GROUP - -
d /run/goldilocks 0755 MY_USER MY_GROUP - - d /run/goldilocks 0755 MY_USER MY_GROUP - -

View File

@ -22,6 +22,7 @@ $sudo_cmd systemctl daemon-reload
$sudo_cmd systemctl start "${my_app_name}.service" $sudo_cmd systemctl start "${my_app_name}.service"
$sudo_cmd systemctl enable "${my_app_name}.service" $sudo_cmd systemctl enable "${my_app_name}.service"
echo ""
echo "" echo ""
echo "Fun systemd commands to remember:" echo "Fun systemd commands to remember:"
echo " $sudo_cmd systemctl daemon-reload" echo " $sudo_cmd systemctl daemon-reload"
@ -29,4 +30,6 @@ echo " $sudo_cmd systemctl restart $my_app_name.service"
echo "" echo ""
echo "$my_app_name started with systemctl, check its status like so:" echo "$my_app_name started with systemctl, check its status like so:"
echo " $sudo_cmd systemctl status $my_app_name" echo " $sudo_cmd systemctl status $my_app_name"
echo " $sudo_cmd journalctl -xe -u $my_app_name" echo " $sudo_cmd journalctl -xefu $my_app_name"
echo ""
echo ""

View File

@ -145,8 +145,7 @@ find $my_root/opt/$my_name -type d -exec $sudo_cmd chmod ug+s {} \;
echo "" echo ""
echo "$my_name installation complete!" echo "$my_name installation complete!"
echo "" echo ""
echo "Restart: systemctl restart $my_name"
echo "Logs: journalctl -xefu $my_name"
echo "Config: /etc/$my_name/$my_name.yml"
echo "" echo ""
echo "Unistall: rm -rf /srv/$my_name/ /var/$my_name/ /etc/$my_name/ /opt/$my_name/ /var/log/$my_name/ /etc/tmpfiles.d/$my_name.service /etc/systemd/system/$my_name.service" echo "Update the config at: /etc/$my_name/$my_name.yml"
echo ""
echo "Unistall: rm -rf /srv/$my_name/ /var/$my_name/ /etc/$my_name/ /opt/$my_name/ /var/log/$my_name/ /etc/tmpfiles.d/$my_name.conf /etc/systemd/system/$my_name.service /etc/ssl/$my_name"