Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6456ba7d3 | ||
|
|
a101cfe1c0 |
4
Makefile
4
Makefile
@@ -8,7 +8,7 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
DEPENDS = dash,kmod,perl,procps-ng,sysvinit
|
||||
DEPENDS = dash,grep,kmod,perl,procps-ng,sed,sysvinit
|
||||
ARCH = x86_64
|
||||
URL = http://snaplinux.org
|
||||
REPO = core
|
||||
@@ -18,7 +18,7 @@ DESC = This package supplies the core required init scripts for startup
|
||||
ARCHIVE := ''
|
||||
SRCDIR := $(PWD)/SRC/initscripts
|
||||
PATCHDIR := $(PWD)/SRC/patches
|
||||
VERSION := 1.9-0
|
||||
VERSION := 1.10-0
|
||||
|
||||
include /usr/share/snap/Makefile.snaplinux
|
||||
|
||||
|
||||
@@ -117,7 +117,9 @@ pidofproc() {
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -r "$pidfile" ]; then
|
||||
if [ -n "$pidfile" ] && [ ! -r "$pidfile" ]; then
|
||||
return 1
|
||||
elif [ -n "$pidfile" ]; then
|
||||
pids=$(head -1 $pidfile|sed 's/ \+//g')
|
||||
else
|
||||
pids=$(pidof "$pathname")
|
||||
|
||||
Reference in New Issue
Block a user