X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fdef.h;h=a52853cfd19850f41221e819994c278e218eb75a;hb=a1948c7bfeb87b54bc7715a44490c01593ee6e23;hp=46b88a8a49e3040d24455fd5c183f35a1f29ab13;hpb=37185ec80ad372907a2a9388735655a7334babb6;p=elogind.git diff --git a/src/shared/def.h b/src/shared/def.h index 46b88a8a4..a52853cfd 100644 --- a/src/shared/def.h +++ b/src/shared/def.h @@ -27,7 +27,13 @@ #define DEFAULT_RESTART_USEC (100*USEC_PER_MSEC) #define DEFAULT_CONFIRM_USEC (30*USEC_PER_SEC) -#define DEFAULT_EXIT_USEC (5*USEC_PER_MINUTE) +#define DEFAULT_START_LIMIT_INTERVAL (10*USEC_PER_SEC) +#define DEFAULT_START_LIMIT_BURST 5 + +/* The default time after which exit-on-idle services exit. This + * should be kept lower than the watchdog timeout, because otherwise + * the watchdog pings will keep the loop busy. */ +#define DEFAULT_EXIT_USEC (30*USEC_PER_SEC) #define SYSTEMD_CGROUP_CONTROLLER "name=systemd" @@ -38,5 +44,35 @@ #define LOWERCASE_LETTERS "abcdefghijklmnopqrstuvwxyz" #define UPPERCASE_LETTERS "ABCDEFGHIJKLMNOPQRSTUVWXYZ" #define LETTERS LOWERCASE_LETTERS UPPERCASE_LETTERS +#define ALPHANUMERICAL LETTERS DIGITS #define REBOOT_PARAM_FILE "/run/systemd/reboot-param" + +#ifdef HAVE_SPLIT_USR +#define KBD_KEYMAP_DIRS \ + "/usr/share/keymaps/\0" \ + "/usr/share/kbd/keymaps/\0" \ + "/usr/lib/kbd/keymaps/\0" \ + "/lib/kbd/keymaps/\0" +#else +#define KBD_KEYMAP_DIRS \ + "/usr/share/keymaps/\0" \ + "/usr/share/kbd/keymaps/\0" \ + "/usr/lib/kbd/keymaps/\0" +#endif + +#define UNIX_SYSTEM_BUS_PATH "unix:path=/var/run/dbus/system_bus_socket" +#define KERNEL_SYSTEM_BUS_PATH "kernel:path=/dev/kdbus/0-system/bus" + +#ifdef ENABLE_KDBUS +# define DEFAULT_SYSTEM_BUS_PATH KERNEL_SYSTEM_BUS_PATH ";" UNIX_SYSTEM_BUS_PATH +#else +# define DEFAULT_SYSTEM_BUS_PATH UNIX_SYSTEM_BUS_PATH +#endif + +#define UNIX_USER_BUS_FMT "unix:path=%s/bus" +#define KERNEL_USER_BUS_FMT "kernel:path=/dev/kdbus/"UID_FMT"-user/bus" + +#ifndef TTY_GID +#define TTY_GID 5 +#endif