chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora: don't ship [Install] sections; these are enabled in the system configuration.
[elogind.git]
/
src
/
service.h
diff --git
a/src/service.h
b/src/service.h
index f01906cad47126fa73e1c3c5760868f72528dfb4..500bebff0886a3894f38562823c6ee1238ed863b 100644
(file)
--- a/
src/service.h
+++ b/
src/service.h
@@
-48,8
+48,10
@@
typedef enum ServiceState {
} ServiceState;
typedef enum ServiceRestart {
} ServiceState;
typedef enum ServiceRestart {
- SERVICE_
ONCE
,
+ SERVICE_
RESTART_NO
,
SERVICE_RESTART_ON_SUCCESS,
SERVICE_RESTART_ON_SUCCESS,
+ SERVICE_RESTART_ON_FAILURE,
+ SERVICE_RESTART_ON_ABORT,
SERVICE_RESTART_ALWAYS,
_SERVICE_RESTART_MAX,
_SERVICE_RESTART_INVALID = -1
SERVICE_RESTART_ALWAYS,
_SERVICE_RESTART_MAX,
_SERVICE_RESTART_INVALID = -1
@@
-106,6
+108,9
@@
struct Service {
ExecCommand *control_command;
ServiceExecCommand control_command_id;
pid_t main_pid, control_pid;
ExecCommand *control_command;
ServiceExecCommand control_command_id;
pid_t main_pid, control_pid;
+ int socket_fd;
+
+ int fsck_passno;
bool permissions_start_only;
bool root_directory_start_only;
bool permissions_start_only;
bool root_directory_start_only;
@@
-117,14
+122,14
@@
struct Service {
bool bus_name_good:1;
bool forbid_restart:1;
bool got_socket_fd:1;
bool bus_name_good:1;
bool forbid_restart:1;
bool got_socket_fd:1;
+#ifdef HAVE_SYSV_COMPAT
bool sysv_has_lsb:1;
bool sysv_enabled:1;
bool sysv_has_lsb:1;
bool sysv_enabled:1;
-
- int socket_fd;
int sysv_start_priority;
char *sysv_path;
char *sysv_runlevels;
int sysv_start_priority;
char *sysv_path;
char *sysv_runlevels;
+#endif
char *bus_name;
char *bus_name;
@@
-132,7
+137,8
@@
struct Service {
RateLimit ratelimit;
RateLimit ratelimit;
- struct Socket *socket;
+ struct Socket *accept_socket;
+ Set *configured_sockets;
Watch timer_watch;
Watch timer_watch;