~ubuntu-branches/ubuntu/trusty/systemd/trusty

« back to all changes in this revision

Viewing changes to src/systemd-interfaces.vala

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Michael Biebl, Michael Stapelberg, Daniel Schaal, Ondrej Balaz
  • Date: 2013-09-12 00:13:11 UTC
  • mfrom: (1.1.11) (9.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: package-import@ubuntu.com-20130912001311-dz35it34wr2lbday
Tags: 204-3
[ Michael Biebl ]
* Upload to unstable.
* Use /bin/bash in debug-shell.service as Debian doesn't have /sbin/sushell.
* Only import net.ifaces cmdline property for network devices.
* Generate strict dependencies between the binary packages using a
  shlibs.local file and add an explicit versioned dependency on
  libsystemd-login0 to systemd to ensure packages are upgraded in sync.
  Closes: #719444
* Drop obsolete Replaces: libudev0 from udev package.
* Use correct paths for various binaries, like /sbin/quotaon, which are
  installed in / and not /usr in Debian.  Closes: #721347
* Don't install kernel-install(8) man page since we don't install the
  corresponding binary either.  Closes: #722180
* Cherry-pick upstream fixes to make switching runlevels and starting
  reboot via ctrl-alt-del more robust.
* Cherry-pick upstream fix to properly apply ACLs to Journal files.

[ Michael Stapelberg ]
* Make systemctl enable|disable call update-rc.d for SysV init scripts.
  Closes: #709780
* Don't mount /tmp as tmpfs by default and make it possible to enable this
  feature via "systemctl enable tmp.mount".

[ Daniel Schaal ]
* Add bug-script to systemd and udev.  Closes: #711245

[ Ondrej Balaz ]
* Recognize discard option in /etc/crypttab.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***
2
 
  This file is part of systemd.
3
 
 
4
 
  Copyright 2010 Lennart Poettering
5
 
 
6
 
  systemd is free software; you can redistribute it and/or modify it
7
 
  under the terms of the GNU General Public License as published by
8
 
  the Free Software Foundation; either version 2 of the License, or
9
 
  (at your option) any later version.
10
 
 
11
 
  systemd is distributed in the hope that it will be useful, but
12
 
  WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
 
  General Public License for more details.
15
 
 
16
 
  You should have received a copy of the GNU General Public License
17
 
  along with systemd; If not, see <http://www.gnu.org/licenses/>.
18
 
***/
19
 
 
20
 
[DBus (name = "org.freedesktop.systemd1.Manager")]
21
 
public interface Manager : DBusProxy {
22
 
 
23
 
        public struct UnitInfo {
24
 
                string id;
25
 
                string description;
26
 
                string load_state;
27
 
                string active_state;
28
 
                string sub_state;
29
 
                string following;
30
 
                ObjectPath unit_path;
31
 
                uint32 job_id;
32
 
                string job_type;
33
 
                ObjectPath job_path;
34
 
        }
35
 
 
36
 
        public struct JobInfo {
37
 
                uint32 id;
38
 
                string name;
39
 
                string type;
40
 
                string state;
41
 
                ObjectPath job_path;
42
 
                ObjectPath unit_path;
43
 
        }
44
 
 
45
 
        public abstract string[] environment { owned get; }
46
 
 
47
 
        public abstract UnitInfo[] list_units() throws IOError;
48
 
        public abstract JobInfo[] list_jobs() throws IOError;
49
 
 
50
 
        public abstract ObjectPath get_unit(string name) throws IOError;
51
 
        public abstract ObjectPath get_unit_by_pid(uint32 pid) throws IOError;
52
 
        public abstract ObjectPath load_unit(string name) throws IOError;
53
 
        public abstract ObjectPath get_job(uint32 id) throws IOError;
54
 
 
55
 
        public abstract ObjectPath start_unit(string name, string mode = "replace") throws IOError;
56
 
        public abstract ObjectPath stop_unit(string name, string mode = "replace") throws IOError;
57
 
        public abstract ObjectPath reload_unit(string name, string mode = "replace") throws IOError;
58
 
        public abstract ObjectPath restart_unit(string name, string mode = "replace") throws IOError;
59
 
        public abstract ObjectPath try_restart_unit(string name, string mode = "replace") throws IOError;
60
 
        public abstract ObjectPath reload_or_restart_unit(string name, string mode = "replace") throws IOError;
61
 
        public abstract ObjectPath reload_or_try_restart_unit(string name, string mode = "replace") throws IOError;
62
 
 
63
 
        public abstract void reset_failed_unit(string name = "") throws IOError;
64
 
 
65
 
        public abstract void clear_jobs() throws IOError;
66
 
 
67
 
        public abstract void subscribe() throws IOError;
68
 
        public abstract void unsubscribe() throws IOError;
69
 
 
70
 
        public abstract string dump() throws IOError;
71
 
 
72
 
        public abstract void reload() throws IOError;
73
 
        public abstract void reexecute() throws IOError;
74
 
        public abstract void exit() throws IOError;
75
 
        public abstract void halt() throws IOError;
76
 
        public abstract void power_off() throws IOError;
77
 
        public abstract void reboot() throws IOError;
78
 
        public abstract void kexec() throws IOError;
79
 
 
80
 
        public abstract ObjectPath create_snapshot(string name = "", bool cleanup = false) throws IOError;
81
 
 
82
 
        public abstract void set_environment(string[] names) throws IOError;
83
 
        public abstract void unset_environment(string[] names) throws IOError;
84
 
 
85
 
        public abstract signal void unit_new(string id, ObjectPath path);
86
 
        public abstract signal void unit_removed(string id, ObjectPath path);
87
 
        public abstract signal void job_new(uint32 id, ObjectPath path);
88
 
        public abstract signal void job_removed(uint32 id, ObjectPath path, string res);
89
 
}
90
 
 
91
 
[DBus (name = "org.freedesktop.systemd1.Unit")]
92
 
public interface Unit : DBusProxy {
93
 
        public struct JobLink {
94
 
                uint32 id;
95
 
                ObjectPath path;
96
 
        }
97
 
 
98
 
        public abstract string id { owned get; }
99
 
        public abstract string[] names { owned get; }
100
 
        public abstract string following { owned get; }
101
 
        public abstract string[] requires { owned get; }
102
 
        public abstract string[] requires_overridable { owned get; }
103
 
        public abstract string[] requisite { owned get; }
104
 
        public abstract string[] requisite_overridable { owned get; }
105
 
        public abstract string[] wants { owned get; }
106
 
        public abstract string[] required_by { owned get; }
107
 
        public abstract string[] required_by_overridable { owned get; }
108
 
        public abstract string[] wanted_by { owned get; }
109
 
        public abstract string[] conflicts { owned get; }
110
 
        public abstract string[] conflicted_by { owned get; }
111
 
        public abstract string[] before { owned get; }
112
 
        public abstract string[] after { owned get; }
113
 
        public abstract string[] on_failure { owned get; }
114
 
        public abstract string description { owned get; }
115
 
        public abstract string load_state { owned get; }
116
 
        public abstract string active_state { owned get; }
117
 
        public abstract string sub_state { owned get; }
118
 
        public abstract string fragment_path { owned get; }
119
 
        public abstract uint64 inactive_exit_timestamp { owned get; }
120
 
        public abstract uint64 active_enter_timestamp { owned get; }
121
 
        public abstract uint64 active_exit_timestamp { owned get; }
122
 
        public abstract uint64 inactive_enter_timestamp { owned get; }
123
 
        public abstract bool can_start { owned get; }
124
 
        public abstract bool can_stop { owned get; }
125
 
        public abstract bool can_reload { owned get; }
126
 
        public abstract JobLink job { owned get; }
127
 
        public abstract bool recursive_stop { owned get; }
128
 
        public abstract bool stop_when_unneeded { owned get; }
129
 
        public abstract bool refuse_manual_start { owned get; }
130
 
        public abstract bool refuse_manual_stop { owned get; }
131
 
        public abstract bool default_dependencies { owned get; }
132
 
        public abstract string default_control_group { owned get; }
133
 
        public abstract string[] control_groups { owned get; }
134
 
        public abstract bool need_daemon_reload { owned get; }
135
 
        public abstract uint64 job_timeout_usec { owned get; }
136
 
 
137
 
        public abstract ObjectPath start(string mode = "replace") throws IOError;
138
 
        public abstract ObjectPath stop(string mode = "replace") throws IOError;
139
 
        public abstract ObjectPath reload(string mode = "replace") throws IOError;
140
 
        public abstract ObjectPath restart(string mode = "replace") throws IOError;
141
 
        public abstract ObjectPath try_restart(string mode = "replace") throws IOError;
142
 
        public abstract ObjectPath reload_or_restart(string mode = "replace") throws IOError;
143
 
        public abstract ObjectPath reload_or_try_restart(string mode = "replace") throws IOError;
144
 
 
145
 
        public abstract void reset_failed() throws IOError;
146
 
}
147
 
 
148
 
[DBus (name = "org.freedesktop.systemd1.Job")]
149
 
public interface Job : DBusProxy {
150
 
        public struct UnitLink {
151
 
                string id;
152
 
                ObjectPath path;
153
 
        }
154
 
 
155
 
        public abstract uint32 id { owned get; }
156
 
        public abstract string state { owned get; }
157
 
        public abstract string job_type { owned get; }
158
 
        public abstract UnitLink unit { owned get; }
159
 
 
160
 
        public abstract void cancel() throws IOError;
161
 
}
162
 
 
163
 
[DBus (name = "org.freedesktop.Properties")]
164
 
public interface Properties : DBusProxy {
165
 
        public abstract Variant? get(string iface, string property) throws IOError;
166
 
        public abstract signal void properties_changed(string iface, HashTable<string, Variant?> changed_properties, string[] invalidated_properties);
167
 
}