rootcert.html: show hashes for the downloadable root certificate
[girocco.git] / toolbox / run-jobd.sh
blob8ab8cb42787c23332ca7718b8ebdda273a2796c7
1 #!/bin/sh
3 cd "$HOME"
5 DEFAULTOPTS="-q -P --load-triggers 12,6 -d 300"
7 exec_login_shell() {
8 # set arg 0 to have a leading '-' to force a login shell since
9 # the -l option is shell-specific. All shells must understand -i.
10 exec perl -e 'my $b=shift; exec $b @ARGV or die "Can\047t exec \"$b\": $!\n"' "$SHELL" "-$(basename "$SHELL")" -i
13 if [ "$1" = "--shell" ]; then
14 shift
15 trap 'trap - HUP INT QUIT PIPE TERM TSTP TTIN TTOU; exec_login_shell' EXIT
16 trap '' HUP INT QUIT PIPE TERM TSTP TTIN TTOU
18 trap - HUP INT QUIT PIPE TERM TSTP TTIN TTOU
19 /usr/bin/nice -n 18 perl -I@basedir@/jobd @basedir@/jobd/jobd.pl $DEFAULTOPTS "$@"
21 exit
23 exec /usr/bin/nice -n 18 perl -I@basedir@/jobd @basedir@/jobd/jobd.pl $DEFAULTOPTS "$@"