Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 764868 Details for
Bug 833087
www-misc/shellinabox-2.20-r4 installs shell script that uses non-POSIX features (to run with dash)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
shellinaboxd.init-r1
shellinaboxd.init-r1 (text/plain), 1.35 KB, created by
kfm
on 2022-02-12 02:16:35 UTC
(
hide
)
Description:
shellinaboxd.init-r1
Filename:
MIME Type:
Creator:
kfm
Created:
2022-02-12 02:16:35 UTC
Size:
1.35 KB
patch
obsolete
>#!/sbin/openrc-run ># Copyright 1999-2022 Gentoo Authors ># Distributed under the terms of the GNU General Public License v2 > >my_daemon="shellinaboxd" >pidfile="/run/$my_daemon.pid" >command="/usr/sbin/$my_daemon" >command_args="$SIAB_OPTS" > >depend() { > use net >} > >start_pre() { > local css label > > [ -z "$SIAB_CSS_DIR" ] && return > > # This code searches SIAB_CSS_DIR for CSS files > # and formats the --user-css option accordingly. > set -- > for css in "$SIAB_CSS_DIR"/*.css; do > test -e "$css" || continue > label=${css##*/} > label=${label%.css} > case $label in > # These are the default style sheets. Don't load them. > print-styles|styles) > ;; > *) > label=$( > printf %s "$label" \ > | awk '{ > gsub("[:+,-]", "_"); > print toupper(substr($0, 1, 1)) substr($0, 2); > }' > ) > if [ $# -eq 0 ]; then > set -- "$label:+$css" > else > set -- "$@" "$label:-$css" > fi > esac > done > > if [ $# -gt 0 ]; then > command_args="$command_args --user-css=\"$(IFS=,; printf %s "$*")\"" > fi >} > >start() { > ebegin "Starting $my_daemon" > printf %s "$command_args" \ > | xargs -E '' start-stop-daemon \ > --start \ > --background \ > --pidfile "$pidfile" \ > --make-pidfile \ > --exec "$command" \ > -1 "$SIAB_LOGFILE" -2 "$SIAB_LOGFILE" \ > -- > eend $? >} > >stop() { > ebegin "Stopping $my_daemon" > start-stop-daemon \ > --stop \ > --pidfile "$pidfile" > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 833087
: 764868 |
764923