| Summary: | net-misc/memcached: Make init.d script confirm to POSIX | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Kai Krakow <hurikhan77+bgo> |
| Component: | [OLD] Server | Assignee: | Robin Johnson <robbat2> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | gentoo |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
*** Bug 448252 has been marked as a duplicate of this bug. *** It's posix already bah |
To use dash as the default-sh for booting baselayout-2, memcached's init script needs to conform to POSIX and remove the following bashisms: The tests in lines 7+8 can be replaced by replacing the [[..]] syntax with a call to "test" which is a builtin in dash, and falls back to a binary otherwise: test -z "${PIDBASE}" && PIDBASE="/var/run/memcached/memcached" test "${CONF}" = "memcached" && CONF='' Reproducible: Always