Compare commits
9 Commits
openrc-0.1
...
openrc-0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3a64ac94e | ||
|
|
1a2f45a4c5 | ||
|
|
34b55f31b3 | ||
|
|
e0c746e938 | ||
|
|
50329eee7a | ||
|
|
fb81028121 | ||
|
|
50e99aa30a | ||
|
|
b177b79242 | ||
|
|
7009f66872 |
@@ -1,3 +1,3 @@
|
||||
NAME= openrc
|
||||
VERSION= 0.13.6
|
||||
VERSION= 0.13.8
|
||||
PKG= ${NAME}-${VERSION}
|
||||
|
||||
@@ -14,7 +14,7 @@ depend()
|
||||
start()
|
||||
{
|
||||
ebegin "setting up tmpfiles.d entries for /dev"
|
||||
@LIBEXECDIR@/sh/tmpfiles.sh --prefix=/dev --create ${tmpfiles_opts}
|
||||
@LIBEXECDIR@/sh/tmpfiles.sh --prefix=/dev --create --boot ${tmpfiles_opts}
|
||||
eend $?
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -8,12 +8,17 @@ DISTFILE?= ${DISTPREFIX}.tar.bz2
|
||||
|
||||
CLEANFILES+= ${NAME}-*.tar.bz2
|
||||
|
||||
CHANGELOG_LIMIT?= --after="1 year ago"
|
||||
|
||||
_SNAP_SH= date -u +%Y%m%d%H%M
|
||||
_SNAP:= $(shell ${_SNAP_SH})
|
||||
SNAP= ${_SNAP}
|
||||
SNAPDIR= ${DISTPREFIX}-${SNAP}
|
||||
SNAPFILE= ${SNAPDIR}.tar.bz2
|
||||
|
||||
changelog:
|
||||
git log ${CHANGELOG_LIMIT} --format=medium > ChangeLog
|
||||
|
||||
dist:
|
||||
git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# Copyright (c) 2012 Alexander Vershilov <qnikst@gentoo.org>
|
||||
# Released under the 2-clause BSD license.
|
||||
extra_stopped_commands="${extra_stopped_commands} cgroup_cleanup"
|
||||
description_cgroup_cleanup="Kill all processes in the cgroup"
|
||||
|
||||
cgroup_find_path()
|
||||
{
|
||||
|
||||
@@ -560,22 +560,20 @@ rc_service_daemons_crashed(const char *service)
|
||||
spidfile = xmalloc(strlen(ch_root) + strlen(pidfile) + 1);
|
||||
strcpy(spidfile, ch_root);
|
||||
strcat(spidfile, pidfile);
|
||||
free(pidfile);
|
||||
pidfile = spidfile;
|
||||
}
|
||||
|
||||
pid = 0;
|
||||
if (spidfile) {
|
||||
if (pidfile) {
|
||||
retval = true;
|
||||
if ((fp = fopen(spidfile, "r"))) {
|
||||
if ((fp = fopen(pidfile, "r"))) {
|
||||
if (fscanf(fp, "%d", &pid) == 1)
|
||||
retval = false;
|
||||
fclose(fp);
|
||||
}
|
||||
free(spidfile);
|
||||
spidfile = NULL;
|
||||
if (ch_root) {
|
||||
free(pidfile);
|
||||
pidfile = NULL;
|
||||
}
|
||||
free(pidfile);
|
||||
pidfile = NULL;
|
||||
|
||||
/* We have the pid, so no need to match
|
||||
on exec or name */
|
||||
|
||||
Reference in New Issue
Block a user