better startup script

FossilOrigin-Name: d012b0bdaf10a1a63a71a3405e797bd4258e4e4b6ad39af06162ba07ce83458a
This commit is contained in:
me@ow.nekobit.net 2022-03-23 04:01:09 +00:00
parent e70adb695b
commit 8d397ea758

View file

@ -1,3 +1,3 @@
#!/bin/bash
kill -9 $(pgrep treebird.cgi) > /dev/null 2>&1
fcgistarter -c $PWD/../dist/treebird.cgi -p 4000 -N 1
fcgistarter -c $(dirname $(readlink -f $0))/../dist/treebird.cgi -p 4000 -N 1