Skip to content

Commit

Permalink
flux/entry # sv
Browse files Browse the repository at this point in the history
  • Loading branch information
sam#gemmi-win10 committed Dec 6, 2023
1 parent 058161f commit 5584abc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions flux/src/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,17 @@ chmod +x /etc/perp/**/rc.*
# 设定再启动perpd才有效,启动后再设定会提示err
ls -F /etc/perp/ |grep "/$" |while read one; do chmod o+t /etc/perp/$one; done


# sv
# ln -s /usr/bin/supervisorctl /usr/bin/sv
file=/usr/bin/sv; rm -f $file;
if [ "$INIT" == "supervisord" ]; then
echo -e "#!/bin/bash\ntest -z "\$1" && go-supervisord ctl -h || go-supervisord ctl \$@" > $file;
else
cat /usr/bin/psv.sh > $file;
fi
chmod +x $file;

# supervisord -n> go-supervisord
# exec supervisord -n
# exec go-supervisord
Expand Down

0 comments on commit 5584abc

Please sign in to comment.