summaryrefslogtreecommitdiff
blob: 374083290ecf77b4eb879ccc701314a6d4e3768a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
 * rcscripts.h
 *
 * Core defines.
 *
 * Copyright (C) 2004,2005 Martin Schlemmer <azarah@nosferatu.za.org>
 *
 *
 *      This program is free software; you can redistribute it and/or modify it
 *      under the terms of the GNU General Public License as published by the
 *      Free Software Foundation version 2 of the License.
 *
 *      This program is distributed in the hope that it will be useful, but
 *      WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *      General Public License for more details.
 *
 *      You should have received a copy of the GNU General Public License along
 *      with this program; if not, write to the Free Software Foundation, Inc.,
 *      675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * $Header$
 */

#ifndef __RCSCRIPTS_H__
#define __RCSCRIPTS_H__

#include <stddef.h>
#include <sys/types.h>

#include "config.h"

#include "api/rctypes.h"
#include "api/debug.h"
#include "api/misc.h"
#include "api/list.h"
#include "api/str_list.h"
#include "api/dynbuf.h"
#include "api/simple-regex.h"
#include "api/scripts.h"
#include "api/runlevels.h"
#include "api/parse.h"
#include "api/depend.h"

#define RCSCRIPTS_CONFDDIR	ETCDIR "/conf.d"
#define RCSCRIPTS_INITDDIR	ETCDIR "/init.d"
#define RCSCRIPTS_LIBDIR	LIBDIR "/rcscripts"

#define RUNLEVELS_DIR		ETCDIR "/runlevels"

#define SBIN_RC			SBINDIR "/rc"
#define PROFILE_ENV		ETCDIR "/profile.env"

#define RC_CONF_FILE_NAME	ETCDIR "/rc.conf"
#define RC_CONFD_FILE_NAME	ETCDIR "/conf.d/rc"

#define RCSCRIPT_HELP		RCSCRIPTS_LIBDIR "/sh/rc-help.sh"

#define SVCDIR_CONFIG_ENTRY	"svcdir"

#define SHELL_PARSER		BINDIR "/bash"

#define DEFAULT_PATH		"PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin"

#define SELINUX_LIB		RCSCRIPTS_LIBDIR "/runscript_selinux.so"

#define SYS_WHITELIST		RCSCRIPTS_LIBDIR "/conf.d/env_whitelist"
#define USR_WHITELIST		RCSCRIPTS_CONFDDIR "/env_whitelist"

#define SOFTLEVEL		"SOFTLEVEL"

#endif /* __RCSCRIPTS_H__ */