fix: set unit with type notify
This commit is contained in:
12
files/sbin/gitea_web_notify
Normal file
12
files/sbin/gitea_web_notify
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Display commands, exit on error and enable job control
|
||||
set -xem
|
||||
|
||||
gitea web &
|
||||
until curl --fail --head http://localhost:3000
|
||||
do
|
||||
sleep 1
|
||||
done
|
||||
systemd-notify --ready
|
||||
fg %1
|
||||
Reference in New Issue
Block a user