use pidfiles instead of blindly murdering starmen

This commit is contained in:
Matthew Connelly 2015-04-10 15:34:40 +01:00
parent 912f73d765
commit 2ebeae2878
1 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
#!/usr/bin/env sh
pkill -f starman >/dev/null 2>&1
pkill -f plack >/dev/null 2>&1
BLOGALBA_DIR="/home/sites/blogalba/" plackup -s Starman -D -p 42069 /home/sites/blogalba/blogalba
pkill -F /home/sites/blogalba.pid 2>/dev/null
BLOGALBA_DIR="/home/sites/blogalba/" plackup -s Starman -D -p 42069 /home/sites/blogalba/blogalba --pid /home/sites/blogalba.pid