config.h (1351B) download
1#pragma once
2
3/// seconds to wait for a service before it gets killed
4#define SV_STOP_TIMEOUT 5
5
6// maximal characters a service-dir can have
7#define SV_NAME_MAX 128
8
9// maximal amount a service may fail
10#define SV_FAIL_MAX 32
11
12// maximal amount of services that can be registered
13#define SV_SERVICE_MAX 128
14
15// time to wait to accept new connection
16#define SV_CHECK_INTERVAL 3
17
18// maximal size of a param in ./params
19#define SV_PARAM_FILE_LINE_MAX 1024
20
21// maximal size of a param in ./env
22#define SV_ENV_FILE_LINE_MAX 1024
23
24// max dependencies in the dep-tree
25#define SV_DEPENDENCY_MAX 128
26
27// max arguments a service can have
28#define SV_ARGUMENTS_MAX 16
29
30// maximal count of environment variables in ./env
31#define SV_ENV_MAX 16
32
33#define SV_USER_BUFFER 256
34
35#define SV_USER_GROUP_MAX 32
36
37#define SV_VLOGGER_BUFFER 1024
38
39#define SV_STATUS_WAIT 5
40
41/// service to start at boot
42#define SV_BOOT_SERVICE "boot"
43
44/// log directory
45#define SV_LOG_DIR "/var/log/fiss"
46/// rescue shell
47#define SV_RESCUE_SHELL "/bin/bash"
48/// service directory
49#define SV_SERVICE_DIR "/etc/service.d"
50/// start executable
51#define SV_START_EXEC "/usr/share/fiss/start"
52/// stop executable
53#define SV_STOP_EXEC "/usr/share/fiss/stop"
54/// suspend executable
55#define SV_SUSPEND_EXEC "/usr/share/fiss/suspend"
56/// resume executable
57#define SV_RESUME_EXEC "/usr/share/fiss/resume"