diff options
Diffstat (limited to 'service.c')
-rw-r--r-- | service.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/service.c b/service.c index b6e6ce1..7087e38 100644 --- a/service.c +++ b/service.c @@ -14,17 +14,21 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <grp.h> -#include <pwd.h> +#include <paths.h> #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include "daemon.h" const char *serviceDir = "/"; -struct passwd *serviceUser; -struct group *serviceGroup; +uid_t serviceUID; +gid_t serviceGID; +char *serviceEnviron[EnvironLen] = { + [SHELL] = "SHELL=" _PATH_BSHELL, + [PATH] = "PATH=" _PATH_DEFPATH, +}; struct Prepend prepend; struct Services services; |