Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/zsh
- ssh jonathan@jobib "DISPLAY=:0.0 gxmessage -nofocus -timeout 3 -borderless -button '' 'Restarting plack...'";
- for pid in $(pidof /usr/local/bin/plackup); do kill $pid; done
- INTRANET=1 INTRANETDIR=/home/koha/src plackup --port 5001 /home/koha/src/misc/plack/koha.psgi -E development >> /home/koha/var/log/koha
- -plack-error.log 2>&1 &
- OPAC=1 OPACDIR=/home/koha/src/opac plackup --port 5000 /home/koha/src/misc/plack/koha.psgi -E development >> /home/koha/var/log/koha
- -opac-plack-error.log 2>&1 &
- while ((1)) {
- nb_pids=$(pidof /usr/local/bin/plackup|wc -w);
- if [[ $nb_pids == 2 ]]; then
- ssh jonathan@jobib "DISPLAY=:0.0 gxmessage -nofocus -timeout 3 -borderless -button '' 'Done!'";
- break;
- else;
- sleep 0.5
- fi
- }
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement