docker-systemctl-replacement 1.7.1063__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1534 @@
1
+ import logging, socket, threading
2
+ from types import TracebackType
3
+ from typing import Callable, Dict, Iterable, Iterator, List, Match, NamedTuple, NoReturn, Optional, TextIO, Tuple, Type, Union
4
+
5
+ class ExecMode(NamedTuple):
6
+ mode: str
7
+ check: bool
8
+ nouser: bool
9
+ noexpand: bool
10
+ argv0: bool
11
+
12
+ class LoadMode(NamedTuple):
13
+ mode: str
14
+ check: bool
15
+
16
+ class SystemctlWaitPID(NamedTuple):
17
+ pid: Optional[int]
18
+ returncode: Optional[int]
19
+ signal: int
20
+
21
+ class SystemctlUnitName(NamedTuple):
22
+ fullname: str
23
+ name: str
24
+ prefix: str
25
+ instance: str
26
+ suffix: str
27
+ component: str
28
+ __copyright__: str
29
+ __version__: str
30
+ logg: logging.Logger
31
+ DEBUG_AFTER: bool
32
+ DEBUG_STATUS: bool
33
+ DEBUG_BOOTTIME: bool
34
+ DEBUG_INITLOOP: bool
35
+ DEBUG_KILLALL: bool
36
+
37
+ def logg_debug_flock(msg: str, *args: Union[str, int]) -> None:
38
+ pass
39
+
40
+ def logg_debug_after(msg: str, *args: Union[str, int]) -> None:
41
+ pass
42
+ NOT_A_PROBLEM: int
43
+ NOT_OK: int
44
+ NOT_ACTIVE: int
45
+ NOT_FOUND: int
46
+ _extra_vars: List[str]
47
+ _force: bool
48
+ _full: bool
49
+ _now: int
50
+ _no_legend: bool
51
+ _no_ask_password: bool
52
+ _preset_mode: str
53
+ _quiet: bool
54
+ _root: str
55
+ _show_all: int
56
+ _user_mode: bool
57
+ _only_what: List[str]
58
+ _only_type: List[str]
59
+ _only_state: List[str]
60
+ _only_property: List[str]
61
+ _system_folders: List[str]
62
+ _user_folders: List[str]
63
+ _preset_folders: List[str]
64
+ SystemCompatibilityVersion: int
65
+ SysInitTarget: str
66
+ SysInitWait: int
67
+ MinimumYield: float
68
+ MinimumTimeoutStartSec: int
69
+ MinimumTimeoutStopSec: int
70
+ DefaultTimeoutStartSec: int
71
+ DefaultTimeoutStopSec: int
72
+ DefaultTimeoutAbortSec: int
73
+ DefaultMaximumTimeout: int
74
+ DefaultRestartSec: float
75
+ DefaultStartLimitIntervalSec: int
76
+ DefaultStartLimitBurst: int
77
+ InitLoopSleep: int
78
+ MaxLockWait: int
79
+ DefaultPath: str
80
+ ResetLocale: List[str]
81
+ DefaultUnit: str
82
+ DefaultTarget: str
83
+ REMOVE_LOCK_FILE: bool
84
+ BOOT_PID_MIN: int
85
+ BOOT_PID_MAX: int
86
+ PROC_MAX_DEPTH: int
87
+ EXPAND_VARS_MAXDEPTH: int
88
+ EXPAND_KEEP_VARS: bool
89
+ RESTART_FAILED_UNITS: bool
90
+ _journal_log_folder: str
91
+ SYSTEMCTL_DEBUG_LOG: str
92
+ SYSTEMCTL_EXTRA_LOG: str
93
+ _default_targets: List[str]
94
+ _feature_targets: List[str]
95
+ _all_common_targets: List[str]
96
+ _all_common_enabled: List[str]
97
+ _all_common_disabled: List[str]
98
+ _runlevel_mappings: Dict[str, str]
99
+ _sysv_mappings: Dict[str, str]
100
+
101
+ def strINET(value: int) -> str:
102
+ pass
103
+
104
+ def strYes(value: Union[str, bool, None]) -> str:
105
+ pass
106
+
107
+ def strE(part: Union[str, int, float, None]) -> str:
108
+ pass
109
+
110
+ def strQ(part: Union[str, int, None]) -> str:
111
+ pass
112
+
113
+ def shell_cmd(cmd: List[str]) -> str:
114
+ pass
115
+
116
+ def to_intN(value: Optional[str], default: Optional[int]=None) -> Optional[int]:
117
+ pass
118
+
119
+ def to_int(value: str, default: int=0) -> int:
120
+ pass
121
+
122
+ def to_list(value: Union[str, List[str], Tuple[str], Tuple[str, ...], None]) -> List[str]:
123
+ pass
124
+
125
+ def commalist(value: Iterable[str]) -> List[str]:
126
+ pass
127
+
128
+ def _commalist(value: Iterable[str]) -> Iterator[str]:
129
+ pass
130
+
131
+ def int_mode(value: str) -> Optional[int]:
132
+ pass
133
+
134
+ def unit_of(module: str) -> str:
135
+ pass
136
+
137
+ def o22(part: str) -> str:
138
+ pass
139
+
140
+ def o44(part: str) -> str:
141
+ pass
142
+
143
+ def o77(part: str) -> str:
144
+ pass
145
+
146
+ def delayed(attempt: int, suffix: str='.') -> str:
147
+ pass
148
+
149
+ def fnmatched(text: str, *patterns: str) -> bool:
150
+ pass
151
+
152
+ def unit_name_escape(text: str) -> str:
153
+ pass
154
+
155
+ def unit_name_unescape(text: str) -> str:
156
+ pass
157
+
158
+ def is_good_root(root: Optional[str]) -> bool:
159
+ pass
160
+
161
+ def os_path(root: Optional[str], path: str) -> str:
162
+ pass
163
+
164
+ def path_replace_extension(path: str, old: str, new: str) -> str:
165
+ pass
166
+
167
+ def get_exist_path(paths: List[str]) -> Optional[str]:
168
+ pass
169
+
170
+ def get_PAGER() -> List[str]:
171
+ pass
172
+
173
+ def os_getlogin() -> str:
174
+ pass
175
+
176
+ def get_runtime_dir() -> str:
177
+ pass
178
+
179
+ def get_RUN(root: bool=False) -> str:
180
+ pass
181
+
182
+ def get_PID_DIR(root: bool=False) -> str:
183
+ pass
184
+
185
+ def get_home() -> str:
186
+ pass
187
+
188
+ def get_HOME(root: bool=False) -> str:
189
+ pass
190
+
191
+ def get_USER_ID(root: bool=False) -> int:
192
+ pass
193
+
194
+ def get_USER(root: bool=False) -> str:
195
+ pass
196
+
197
+ def get_GROUP_ID(root: bool=False) -> int:
198
+ pass
199
+
200
+ def get_GROUP(root: bool=False) -> str:
201
+ pass
202
+
203
+ def get_TMP(root: bool=False) -> str:
204
+ pass
205
+
206
+ def get_VARTMP(root: bool=False) -> str:
207
+ pass
208
+
209
+ def get_SHELL(root: bool=False) -> str:
210
+ pass
211
+
212
+ def get_RUNTIME_DIR(root: bool=False) -> str:
213
+ pass
214
+
215
+ def get_CONFIG_HOME(root: bool=False) -> str:
216
+ pass
217
+
218
+ def get_CACHE_HOME(root: bool=False) -> str:
219
+ pass
220
+
221
+ def get_DATA_HOME(root: bool=False) -> str:
222
+ pass
223
+
224
+ def get_LOG_DIR(root: bool=False) -> str:
225
+ pass
226
+
227
+ def get_VARLIB_HOME(root: bool=False) -> str:
228
+ pass
229
+
230
+ def expand_path(path: str, root: bool=False) -> str:
231
+ pass
232
+
233
+ def shutil_fchown(fileno: int, user: Optional[str], group: Optional[str]) -> None:
234
+ pass
235
+
236
+ def shutil_setuid(user: Optional[str]=None, group: Optional[str]=None, xgroups: Optional[List[str]]=None) -> Dict[str, str]:
237
+ pass
238
+
239
+ def shutil_truncate(filename: str) -> None:
240
+ pass
241
+
242
+ def pid_exists(pid: int) -> bool:
243
+ pass
244
+
245
+ def _pid_exists(pid: int) -> bool:
246
+ pass
247
+
248
+ def pid_zombie(pid: int) -> bool:
249
+ pass
250
+
251
+ def _pid_zombie(pid: int) -> bool:
252
+ pass
253
+
254
+ def checkprefix(cmd: str) -> Tuple[str, str]:
255
+ pass
256
+
257
+ def exec_path(cmd: str) -> Tuple[ExecMode, str]:
258
+ pass
259
+
260
+ def load_path(ref: str) -> Tuple[LoadMode, str]:
261
+ pass
262
+
263
+ def ignore_signals_and_raise_keyboard_interrupt(signame: str) -> None:
264
+ pass
265
+ _default_dict_type: Type[Dict[str, List[str]]]
266
+ _default_conf_type: Type[Dict[str, Dict[str, List[str]]]]
267
+
268
+ class SystemctlConfData:
269
+ _defaults: Dict[str, str]
270
+ _conf_type: Type[Dict[str, Dict[str, List[str]]]]
271
+ _dict_type: Type[Dict[str, List[str]]]
272
+ _allow_no_value: bool
273
+ _conf: Dict[str, Dict[str, List[str]]]
274
+ _files: List[str]
275
+
276
+ def __init__(self, defaults: Optional[Dict[str, str]]=None, dict_type: Optional[Type[Dict[str, List[str]]]]=None, conf_type: Optional[Type[Dict[str, Dict[str, List[str]]]]]=None, allow_no_value: bool=False) -> None:
277
+ pass
278
+
279
+ def defaults(self) -> Dict[str, str]:
280
+ pass
281
+
282
+ def sections(self) -> List[str]:
283
+ pass
284
+
285
+ def add_section(self, section: str) -> None:
286
+ pass
287
+
288
+ def has_section(self, section: str) -> bool:
289
+ pass
290
+
291
+ def has_option(self, section: str, option: str) -> bool:
292
+ pass
293
+
294
+ def set(self, section: str, option: str, value: Optional[str]) -> None:
295
+ pass
296
+
297
+ def getstr(self, section: str, option: str, default: Optional[str]=None, allow_no_value: bool=False) -> str:
298
+ pass
299
+
300
+ def get(self, section: str, option: str, default: Optional[str]=None, allow_no_value: bool=False) -> Optional[str]:
301
+ pass
302
+
303
+ def getlist(self, section: str, option: str, default: Optional[List[str]]=None, allow_no_value: bool=False) -> List[str]:
304
+ pass
305
+
306
+ def filenames(self) -> List[str]:
307
+ pass
308
+
309
+ class SystemctlConfigParser(SystemctlConfData):
310
+
311
+ def read(self, filename: str) -> 'SystemctlConfigParser':
312
+ pass
313
+
314
+ def read_sysd(self, filename: str) -> 'SystemctlConfigParser':
315
+ pass
316
+
317
+ def read_sysv(self, filename: str) -> 'SystemctlConfigParser':
318
+ pass
319
+
320
+ def systemd_sysv_generator(self, filename: str) -> None:
321
+ pass
322
+
323
+ class SystemctlConf:
324
+ data: SystemctlConfData
325
+ env: Dict[str, str]
326
+ status: Optional[Dict[str, str]]
327
+ masked: Optional[str]
328
+ module: Optional[str]
329
+ nonloaded_path: str
330
+ drop_in_files: Dict[str, str]
331
+ _root: str
332
+ _user_mode: bool
333
+
334
+ def __init__(self, data: SystemctlConfData, module: Optional[str]=None) -> None:
335
+ pass
336
+
337
+ def root_mode(self) -> bool:
338
+ pass
339
+
340
+ def is_loaded(self) -> str:
341
+ pass
342
+
343
+ def filename(self) -> Optional[str]:
344
+ pass
345
+
346
+ def overrides(self) -> List[str]:
347
+ pass
348
+
349
+ def name(self) -> str:
350
+ pass
351
+
352
+ def set(self, section: str, name: str, value: Optional[str]) -> None:
353
+ pass
354
+
355
+ def get(self, section: str, name: str, default: Optional[str], allow_no_value: bool=False) -> str:
356
+ pass
357
+
358
+ def getlist(self, section: str, name: str, default: Optional[List[str]]=None, allow_no_value: bool=False) -> List[str]:
359
+ pass
360
+
361
+ def getbool(self, section: str, name: str, default: Optional[str]=None) -> bool:
362
+ pass
363
+
364
+ class SystemctlSocket:
365
+
366
+ def __init__(self, conf: SystemctlConf, sock: socket.socket, skip: bool=False) -> None:
367
+ pass
368
+
369
+ def fileno(self) -> int:
370
+ pass
371
+
372
+ def listen(self, backlog: Optional[int]=None) -> None:
373
+ pass
374
+
375
+ def name(self) -> str:
376
+ pass
377
+
378
+ def addr(self) -> str:
379
+ pass
380
+
381
+ def close(self) -> None:
382
+ pass
383
+
384
+ class PresetFile:
385
+ _files: List[str]
386
+ _lines: List[str]
387
+
388
+ def __init__(self) -> None:
389
+ pass
390
+
391
+ def filename(self) -> Optional[str]:
392
+ pass
393
+
394
+ def read(self, filename: str) -> 'PresetFile':
395
+ pass
396
+
397
+ def get_preset(self, unit: str) -> Optional[str]:
398
+ pass
399
+
400
+ class waitlock:
401
+ conf: SystemctlConf
402
+ opened: int
403
+ lockfolder: str
404
+
405
+ def __init__(self, conf: SystemctlConf) -> None:
406
+ pass
407
+
408
+ def lockfile(self) -> str:
409
+ pass
410
+
411
+ def __enter__(self) -> bool:
412
+ pass
413
+
414
+ def __exit__(self, exc: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]) -> None:
415
+ pass
416
+
417
+ def must_have_failed(waitpid: SystemctlWaitPID, cmd: List[str]) -> SystemctlWaitPID:
418
+ pass
419
+
420
+ def subprocess_waitpid(pid: int) -> SystemctlWaitPID:
421
+ pass
422
+
423
+ def subprocess_testpid(pid: int) -> SystemctlWaitPID:
424
+ pass
425
+
426
+ def parse_unit(fullname: str) -> SystemctlUnitName:
427
+ pass
428
+
429
+ def time_to_seconds(text: str, maximum: float) -> float:
430
+ pass
431
+
432
+ def seconds_to_time(seconds: float) -> str:
433
+ pass
434
+
435
+ def getBefore(conf: SystemctlConf) -> List[str]:
436
+ pass
437
+
438
+ def getAfter(conf: SystemctlConf) -> List[str]:
439
+ pass
440
+
441
+ def compareAfter(confA: SystemctlConf, confB: SystemctlConf) -> int:
442
+ pass
443
+
444
+ def conf_sortedAfter(conflist: Iterable[SystemctlConf], cmp: Callable[[SystemctlConf, SystemctlConf], int]=compareAfter) -> List[SystemctlConf]:
445
+ pass
446
+
447
+ def read_env_file(filename: str, root: Optional[str]=NIX) -> Iterator[Tuple[str, str]]:
448
+ pass
449
+
450
+ class SystemctlUnitFiles:
451
+ _root: str
452
+ _user_mode: bool
453
+ _user_getlogin: str
454
+ _extra_vars: List[str]
455
+ _SYSTEMD_UNIT_PATH: Optional[str]
456
+ _SYSTEMD_SYSVINIT_PATH: Optional[str]
457
+ _SYSTEMD_PRESET_PATH: Optional[str]
458
+ _loaded_file_sysv: Dict[str, SystemctlConf]
459
+ _loaded_file_sysd: Dict[str, SystemctlConf]
460
+ _file_for_unit_sysv: Optional[Dict[str, str]]
461
+ _file_for_unit_sysd: Optional[Dict[str, str]]
462
+ _preset_file_list: Optional[Dict[str, PresetFile]]
463
+
464
+ def __init__(self, root: str=NIX) -> None:
465
+ pass
466
+
467
+ def user(self) -> str:
468
+ pass
469
+
470
+ def user_mode(self) -> bool:
471
+ pass
472
+
473
+ def user_folder(self) -> str:
474
+ pass
475
+
476
+ def system_folder(self) -> str:
477
+ pass
478
+
479
+ def preset_folders(self) -> Iterable[str]:
480
+ pass
481
+
482
+ def init_folders(self) -> Iterable[str]:
483
+ pass
484
+
485
+ def user_folders(self) -> Iterable[str]:
486
+ pass
487
+
488
+ def system_folders(self) -> Iterable[str]:
489
+ pass
490
+
491
+ def get_SYSTEMD_UNIT_PATH(self) -> str:
492
+ pass
493
+
494
+ def get_SYSTEMD_SYSVINIT_PATH(self) -> str:
495
+ pass
496
+
497
+ def get_SYSTEMD_PRESET_PATH(self) -> str:
498
+ pass
499
+
500
+ def sysd_folders(self) -> Iterable[str]:
501
+ pass
502
+
503
+ def scan_unit_sysd_files(self) -> List[str]:
504
+ pass
505
+
506
+ def scan_unit_sysv_files(self) -> List[str]:
507
+ pass
508
+
509
+ def unit_sysd_file(self, module: Optional[str]=None) -> Optional[str]:
510
+ pass
511
+
512
+ def unit_sysv_file(self, module: Optional[str]=None) -> Optional[str]:
513
+ pass
514
+
515
+ def unit_file(self, module: Optional[str]=None) -> Optional[str]:
516
+ pass
517
+
518
+ def is_sysv_file(self, filename: Optional[str]) -> Optional[bool]:
519
+ pass
520
+
521
+ def is_user_conf(self, conf: SystemctlConf) -> bool:
522
+ pass
523
+
524
+ def not_user_conf(self, conf: SystemctlConf) -> bool:
525
+ pass
526
+
527
+ def find_drop_in_files(self, unit: str) -> Dict[str, str]:
528
+ pass
529
+
530
+ def load_sysd_template_conf(self, module: Optional[str]) -> Optional[SystemctlConf]:
531
+ pass
532
+
533
+ def load_sysd_unit_conf(self, module: Optional[str]) -> Optional[SystemctlConf]:
534
+ pass
535
+
536
+ def load_sysv_unit_conf(self, module: Optional[str]) -> Optional[SystemctlConf]:
537
+ pass
538
+
539
+ def load_conf(self, module: Optional[str]) -> Optional[SystemctlConf]:
540
+ pass
541
+
542
+ def default_conf(self, module: str, description: Optional[str]=None) -> SystemctlConf:
543
+ pass
544
+
545
+ def get_conf(self, module: str) -> SystemctlConf:
546
+ pass
547
+
548
+ def match_sysd_templates(self, modules: Optional[List[str]]=None) -> Iterable[str]:
549
+ pass
550
+
551
+ def match_sysd_units(self, modules: Optional[List[str]]=None) -> Iterable[str]:
552
+ pass
553
+
554
+ def match_sysv_units(self, modules: Optional[List[str]]=None) -> Iterable[str]:
555
+ pass
556
+
557
+ def match_units(self, modules: Optional[List[str]]=None) -> List[str]:
558
+ pass
559
+
560
+ def list_all(self) -> List[Tuple[str, str, str]]:
561
+ pass
562
+
563
+ def each_target_file(self) -> Iterable[Tuple[str, str]]:
564
+ pass
565
+
566
+ def get_target_conf(self, module: str) -> SystemctlConf:
567
+ pass
568
+
569
+ def get_target_list(self, module: str) -> List[str]:
570
+ pass
571
+
572
+ def get_InstallTarget(self, conf: SystemctlConf, default: Optional[str]=None) -> Optional[str]:
573
+ pass
574
+
575
+ def get_TimeoutStartSec(self, conf: SystemctlConf, section: str=Service) -> float:
576
+ pass
577
+
578
+ def get_SocketTimeoutSec(self, conf: SystemctlConf, section: str=Socket) -> float:
579
+ pass
580
+
581
+ def get_RemainAfterExit(self, conf: SystemctlConf, section: str=Service) -> bool:
582
+ pass
583
+
584
+ def get_StatusFile(self, conf: SystemctlConf, section: str=Service) -> Optional[str]:
585
+ pass
586
+
587
+ def get_RuntimeDirectoryPreserve(self, conf: SystemctlConf, section: str=Service) -> bool:
588
+ pass
589
+
590
+ def get_RuntimeDirectory(self, conf: SystemctlConf, section: str=Service) -> str:
591
+ pass
592
+
593
+ def get_StateDirectory(self, conf: SystemctlConf, section: str=Service) -> str:
594
+ pass
595
+
596
+ def get_CacheDirectory(self, conf: SystemctlConf, section: str=Service) -> str:
597
+ pass
598
+
599
+ def get_LogsDirectory(self, conf: SystemctlConf, section: str=Service) -> str:
600
+ pass
601
+
602
+ def get_ConfigurationDirectory(self, conf: SystemctlConf, section: str=Service) -> str:
603
+ pass
604
+
605
+ def get_RuntimeDirectoryMode(self, conf: SystemctlConf, section: str=Service) -> str:
606
+ pass
607
+
608
+ def get_StateDirectoryMode(self, conf: SystemctlConf, section: str=Service) -> str:
609
+ pass
610
+
611
+ def get_CacheDirectoryMode(self, conf: SystemctlConf, section: str=Service) -> str:
612
+ pass
613
+
614
+ def get_LogsDirectoryMode(self, conf: SystemctlConf, section: str=Service) -> str:
615
+ pass
616
+
617
+ def get_ConfigurationDirectoryMode(self, conf: SystemctlConf, section: str=Service) -> str:
618
+ pass
619
+
620
+ def get_WorkingDirectory(self, conf: SystemctlConf) -> str:
621
+ pass
622
+
623
+ def get_TimeoutStopSec(self, conf: SystemctlConf) -> float:
624
+ pass
625
+
626
+ def get_SendSIGKILL(self, conf: SystemctlConf) -> bool:
627
+ pass
628
+
629
+ def get_SendSIGHUP(self, conf: SystemctlConf) -> bool:
630
+ pass
631
+
632
+ def get_KillMode(self, conf: SystemctlConf) -> str:
633
+ pass
634
+
635
+ def get_KillSignal(self, conf: SystemctlConf) -> str:
636
+ pass
637
+
638
+ def get_StartLimitBurst(self, conf: SystemctlConf) -> int:
639
+ pass
640
+
641
+ def get_StartLimitIntervalSec(self, conf: SystemctlConf, maximum: Optional[int]=None) -> float:
642
+ pass
643
+
644
+ def get_RestartSec(self, conf: SystemctlConf, maximum: Optional[int]=None) -> float:
645
+ pass
646
+
647
+ def get_description(self, unit: str, default: str=NIX) -> str:
648
+ pass
649
+
650
+ def get_Description(self, conf: Optional[SystemctlConf], default: str=NIX) -> str:
651
+ pass
652
+
653
+ def get_User(self, conf: SystemctlConf) -> Optional[str]:
654
+ pass
655
+
656
+ def get_Group(self, conf: SystemctlConf) -> Optional[str]:
657
+ pass
658
+
659
+ def get_SupplementaryGroups(self, conf: SystemctlConf) -> List[str]:
660
+ pass
661
+
662
+ def expand_list(self, group_lines: List[str], conf: SystemctlConf) -> List[str]:
663
+ pass
664
+
665
+ def expand_special(self, cmd: str, conf: SystemctlConf) -> str:
666
+ pass
667
+
668
+ def extra_vars(self) -> List[str]:
669
+ pass
670
+
671
+ def get_env(self, conf: SystemctlConf) -> Dict[str, str]:
672
+ pass
673
+
674
+ def expand_env(self, cmd: str, env: Dict[str, str]) -> str:
675
+ pass
676
+
677
+ def read_env_file(self, env_file: str) -> Iterable[Tuple[str, str]]:
678
+ pass
679
+
680
+ def read_env_part(self, env_part: str) -> Iterable[Tuple[str, str]]:
681
+ pass
682
+
683
+ def get_dependencies_unit(self, unit: str, styles: Optional[List[str]]=None) -> Dict[str, str]:
684
+ pass
685
+
686
+ def get_required_dependencies(self, unit: str, styles: Optional[List[str]]=None) -> Dict[str, str]:
687
+ pass
688
+
689
+ def get_start_dependencies(self, unit: str, styles: Optional[List[str]]=None) -> Dict[str, List[str]]:
690
+ pass
691
+
692
+ def sorted_after(self, unitlist: List[str]) -> List[str]:
693
+ pass
694
+
695
+ def list_dependencies(self, unit: str, indent: Optional[str]=None) -> Iterable[str]:
696
+ pass
697
+
698
+ def list_all_dependencies(self, unit: str, indent: Optional[str]=None) -> Iterable[str]:
699
+ pass
700
+
701
+ def _list_dependencies(self, unit: str, show: str=NIX, indent: Optional[str]=None, mark: Optional[str]=None, loop: Optional[List[str]]=None) -> Iterable[str]:
702
+ pass
703
+
704
+ def list_start_dependencies_units(self, units: List[str]) -> List[Tuple[str, str]]:
705
+ pass
706
+
707
+ def load_preset_files(self, *modules: str) -> List[str]:
708
+ pass
709
+
710
+ def get_preset_of_unit(self, unit: str) -> Optional[str]:
711
+ pass
712
+
713
+ def check_env_conditions(self, conf: SystemctlConf, section: str=Unit, warning: int=logging.WARNING) -> List[str]:
714
+ pass
715
+
716
+ def check_system_conditions(self, conf: SystemctlConf, section: str=Unit, warning: int=logging.WARNING) -> List[str]:
717
+ pass
718
+
719
+ def check_file_conditions(self, conf: SystemctlConf, section: str=Unit, warning: int=logging.WARNING) -> List[str]:
720
+ pass
721
+
722
+ def syntax_check(self, conf: SystemctlConf, *, conditions: bool=True) -> int:
723
+ pass
724
+
725
+ def syntax_check_enable(self, conf: SystemctlConf, section: str=Install) -> int:
726
+ pass
727
+
728
+ def syntax_check_service(self, conf: SystemctlConf, section: str=Service) -> int:
729
+ pass
730
+
731
+ def exec_check(self, conf: SystemctlConf, env: Dict[str, str], section: str=Service, exectype: str=NIX) -> bool:
732
+ pass
733
+
734
+ def expand_cmd(self, cmd: str, env: Dict[str, str], conf: SystemctlConf) -> Tuple[ExecMode, List[str]]:
735
+ pass
736
+
737
+ def split_cmd(self, cmd: str) -> List[str]:
738
+ pass
739
+
740
+ def split_cmd_and_expand(self, cmd: str, env: Dict[str, str], conf: SystemctlConf) -> List[str]:
741
+ pass
742
+
743
+ class SystemctlListenThread(threading.Thread):
744
+
745
+ def __init__(self, systemctl: 'Systemctl') -> None:
746
+ pass
747
+
748
+ def stop(self) -> None:
749
+ pass
750
+
751
+ def run(self) -> None:
752
+ pass
753
+
754
+ class Systemctl:
755
+ error: int
756
+ _extra_vars: List[str]
757
+ _force: bool
758
+ _full: bool
759
+ _no_ask_password: bool
760
+ _no_legend: bool
761
+ _now: int
762
+ _preset_mode: str
763
+ _quiet: bool
764
+ _root: str
765
+ _show_all: int
766
+ _unit_property: Optional[str]
767
+ _unit_state: Optional[str]
768
+ _unit_type: Optional[str]
769
+ _systemd_version: int
770
+ _pid_file_folder: str
771
+ _journal_log_folder: str
772
+ _default_target: str
773
+ _sysinit_target: Optional[SystemctlConf]
774
+ exit_mode: int
775
+ init_mode: int
776
+ _log_file: Dict[str, int]
777
+ _log_hold: Dict[str, bytes]
778
+ _boottime: Optional[float]
779
+ _restarted_unit: Dict[str, List[float]]
780
+ _restart_failed_units: Dict[str, float]
781
+ _sockets: Dict[str, SystemctlSocket]
782
+ loop_sleep: int
783
+ loop_lock: threading.Lock
784
+ unitfiles: SystemctlUnitFiles
785
+
786
+ def __init__(self) -> None:
787
+ pass
788
+
789
+ def get_unit_type(self, module: str) -> Optional[str]:
790
+ pass
791
+
792
+ def get_unit_section(self, module: str, default: str=Service) -> str:
793
+ pass
794
+
795
+ def get_unit_section_from(self, conf: SystemctlConf, default: str=Service) -> str:
796
+ pass
797
+
798
+ def list_service_units(self, *modules: str) -> List[Tuple[str, str, str]]:
799
+ pass
800
+
801
+ def list_units_modules(self, *modules: str) -> List[Tuple[str, str, str]]:
802
+ pass
803
+
804
+ def list_service_unit_files(self, *modules: str) -> List[Tuple[str, str]]:
805
+ pass
806
+
807
+ def list_target_unit_files(self, *modules: str) -> List[Tuple[str, str]]:
808
+ pass
809
+
810
+ def list_service_unit_basics(self) -> List[Tuple[str, str, str]]:
811
+ pass
812
+
813
+ def list_unit_files_modules(self, *modules: str) -> List[Tuple[str, str]]:
814
+ pass
815
+
816
+ def read_pid_file(self, pid_file: str, default: Optional[int]=None) -> Optional[int]:
817
+ pass
818
+
819
+ def wait_pid_file(self, pid_file: str, timeout: Optional[int]=None) -> Optional[int]:
820
+ pass
821
+
822
+ def get_status_pid_file(self, unit: str) -> str:
823
+ pass
824
+
825
+ def pid_file_from(self, conf: SystemctlConf, default: str='') -> str:
826
+ pass
827
+
828
+ def get_pid_file(self, conf: SystemctlConf, default: Optional[str]=None) -> str:
829
+ pass
830
+
831
+ def read_mainpid_from(self, conf: SystemctlConf, default: Optional[int]=None) -> Optional[int]:
832
+ pass
833
+
834
+ def clean_pid_file_from(self, conf: SystemctlConf) -> None:
835
+ pass
836
+
837
+ def get_status_file(self, unit: str) -> str:
838
+ pass
839
+
840
+ def get_status_file_from(self, conf: SystemctlConf, default: Optional[str]=None) -> str:
841
+ pass
842
+
843
+ def get_StatusFile(self, conf: SystemctlConf, default: Optional[str]=None) -> str:
844
+ pass
845
+
846
+ def clean_status_from(self, conf: SystemctlConf) -> None:
847
+ pass
848
+
849
+ def write_status_from(self, conf: SystemctlConf, **status: Union[str, int, None]) -> bool:
850
+ pass
851
+
852
+ def read_status_from(self, conf: SystemctlConf) -> Dict[str, str]:
853
+ pass
854
+
855
+ def get_status_from(self, conf: SystemctlConf, name: str, default: Optional[str]=None) -> Optional[str]:
856
+ pass
857
+
858
+ def set_status_from(self, conf: SystemctlConf, name: str, value: Optional[str]) -> None:
859
+ pass
860
+
861
+ def get_boottime(self) -> float:
862
+ pass
863
+
864
+ def get_boottime_from_proc(self) -> float:
865
+ pass
866
+
867
+ def get_boottime_from_old_proc(self) -> float:
868
+ pass
869
+
870
+ def path_proc_started(self, proc: str) -> float:
871
+ pass
872
+
873
+ def get_filetime(self, filename: str) -> float:
874
+ pass
875
+
876
+ def truncate_old(self, filename: str) -> bool:
877
+ pass
878
+
879
+ def getsize(self, filename: str) -> int:
880
+ pass
881
+
882
+ def command_of_unit(self, unit: str) -> Union[None, List[str]]:
883
+ pass
884
+
885
+ def environment_of_unit(self, unit: str) -> Union[None, Dict[str, str]]:
886
+ pass
887
+
888
+ def system_exec_env(self) -> List[str]:
889
+ pass
890
+
891
+ def each_system_exec_env(self, env: Dict[str, str]) -> Iterator[str]:
892
+ pass
893
+
894
+ def remove_service_directories(self, conf: SystemctlConf, section: str=Service) -> bool:
895
+ pass
896
+
897
+ def do_rm_tree(self, path: str) -> bool:
898
+ pass
899
+
900
+ def clean_service_directories(self, conf: SystemctlConf, which: str=NIX) -> bool:
901
+ pass
902
+
903
+ def env_service_directories(self, conf: SystemctlConf) -> Dict[str, str]:
904
+ pass
905
+
906
+ def create_service_directories(self, conf: SystemctlConf) -> Dict[str, str]:
907
+ pass
908
+
909
+ def make_service_directory(self, path: str, mode: str) -> bool:
910
+ pass
911
+
912
+ def chown_service_directory(self, path: str, user: Optional[str], group: Optional[str]) -> bool:
913
+ pass
914
+
915
+ def do_chown_tree(self, path: str, user: Optional[str], group: Optional[str]) -> bool:
916
+ pass
917
+
918
+ def clean_modules(self, *modules: str) -> bool:
919
+ pass
920
+
921
+ def clean_units(self, units: List[str], what: str=NIX) -> bool:
922
+ pass
923
+
924
+ def clean_unit(self, unit: str, what: str=NIX) -> bool:
925
+ pass
926
+
927
+ def clean_unit_from(self, conf: SystemctlConf, what: str) -> bool:
928
+ pass
929
+
930
+ def log_modules(self, *modules: str) -> bool:
931
+ pass
932
+
933
+ def log_units(self, units: List[str], lines: Optional[int]=None, follow: bool=False) -> int:
934
+ pass
935
+
936
+ def log_unit(self, unit: str, lines: Optional[int]=None, follow: bool=False) -> int:
937
+ pass
938
+
939
+ def log_unit_from(self, conf: SystemctlConf, lines: Optional[int]=None, follow: bool=False) -> int:
940
+ pass
941
+
942
+ def get_journal_log_from(self, conf: SystemctlConf) -> str:
943
+ pass
944
+
945
+ def get_journal_log(self, conf: SystemctlConf) -> str:
946
+ pass
947
+
948
+ def open_journal_log(self, conf: SystemctlConf) -> TextIO:
949
+ pass
950
+
951
+ def chdir_workingdir(self, conf: SystemctlConf) -> Union[str, bool, None]:
952
+ pass
953
+
954
+ def get_notify_socket_from(self, conf: SystemctlConf, socketfile: Optional[str]=None, debug: bool=False) -> str:
955
+ pass
956
+
957
+ def notify_socket_from(self, conf: SystemctlConf, socketfile: Optional[str]=None) -> NotifySocket:
958
+ pass
959
+
960
+ def read_notify_socket(self, notify: NotifySocket, timeout: float) -> str:
961
+ pass
962
+
963
+ def wait_notify_socket(self, notify: NotifySocket, timeout: float, pid: Optional[int]=None, pid_file: Optional[str]=None) -> Dict[str, str]:
964
+ pass
965
+
966
+ def start_modules(self, *modules: str) -> bool:
967
+ pass
968
+
969
+ def start_units(self, units: List[str], init: Optional[int]=None) -> bool:
970
+ pass
971
+
972
+ def start_unit(self, unit: str) -> bool:
973
+ pass
974
+
975
+ def start_unit_from(self, conf: SystemctlConf) -> bool:
976
+ pass
977
+
978
+ def do_start_unit_from(self, conf: SystemctlConf) -> bool:
979
+ pass
980
+
981
+ def do_start_service_from(self, conf: SystemctlConf) -> bool:
982
+ pass
983
+
984
+ def listen_modules(self, *modules: str) -> bool:
985
+ pass
986
+
987
+ def listen_units(self, units: List[str]) -> bool:
988
+ pass
989
+
990
+ def listen_unit(self, unit: str) -> bool:
991
+ pass
992
+
993
+ def listen_unit_from(self, conf: SystemctlConf) -> bool:
994
+ pass
995
+
996
+ def do_listen_unit_from(self, conf: SystemctlConf) -> bool:
997
+ pass
998
+
999
+ def do_accept_socket_from(self, conf: SystemctlConf, sock: socket.socket) -> bool:
1000
+ pass
1001
+
1002
+ def get_socket_service_from(self, conf: SystemctlConf) -> str:
1003
+ pass
1004
+
1005
+ def do_start_socket_from(self, conf: SystemctlConf) -> bool:
1006
+ pass
1007
+
1008
+ def socketlist(self) -> List[SystemctlSocket]:
1009
+ pass
1010
+
1011
+ def create_socket(self, conf: SystemctlConf) -> Optional[socket.socket]:
1012
+ pass
1013
+
1014
+ def create_unix_socket(self, conf: SystemctlConf, path: str, dgram: bool) -> Optional[socket.socket]:
1015
+ pass
1016
+
1017
+ def create_port_socket(self, conf: SystemctlConf, port: str, dgram: bool) -> Optional[socket.socket]:
1018
+ pass
1019
+
1020
+ def create_port_ipv4_socket(self, conf: SystemctlConf, addr: str, port: str, dgram: bool) -> Optional[socket.socket]:
1021
+ pass
1022
+
1023
+ def create_port_ipv6_socket(self, conf: SystemctlConf, addr: str, port: str, dgram: bool) -> Optional[socket.socket]:
1024
+ pass
1025
+
1026
+ def extend_exec_env(self, env: Dict[str, str]) -> Dict[str, str]:
1027
+ pass
1028
+
1029
+ def skip_journal_log(self, conf: SystemctlConf) -> bool:
1030
+ pass
1031
+
1032
+ def dup2_journal_log(self, conf: SystemctlConf) -> None:
1033
+ pass
1034
+
1035
+ def execve_from(self, conf: SystemctlConf, cmd: List[str], env: Dict[str, str]) -> NoReturn:
1036
+ pass
1037
+
1038
+ def test_start_unit(self, unit: str) -> None:
1039
+ pass
1040
+
1041
+ def stop_modules(self, *modules: str) -> bool:
1042
+ pass
1043
+
1044
+ def stop_units(self, units: List[str]) -> bool:
1045
+ pass
1046
+
1047
+ def stop_unit(self, unit: str) -> bool:
1048
+ pass
1049
+
1050
+ def stop_unit_from(self, conf: SystemctlConf) -> bool:
1051
+ pass
1052
+
1053
+ def do_stop_unit_from(self, conf: SystemctlConf) -> bool:
1054
+ pass
1055
+
1056
+ def do_stop_service_from(self, conf: SystemctlConf) -> bool:
1057
+ pass
1058
+
1059
+ def do_stop_socket_from(self, conf: SystemctlConf) -> bool:
1060
+ pass
1061
+
1062
+ def wait_vanished_pid(self, pid: int, timeout: float) -> bool:
1063
+ pass
1064
+
1065
+ def reload_modules(self, *modules: str) -> bool:
1066
+ pass
1067
+
1068
+ def reload_units(self, units: List[str]) -> bool:
1069
+ pass
1070
+
1071
+ def reload_unit(self, unit: str) -> bool:
1072
+ pass
1073
+
1074
+ def reload_unit_from(self, conf: SystemctlConf) -> bool:
1075
+ pass
1076
+
1077
+ def do_reload_unit_from(self, conf: SystemctlConf) -> bool:
1078
+ pass
1079
+
1080
+ def do_reload_service_from(self, conf: SystemctlConf) -> bool:
1081
+ pass
1082
+
1083
+ def restart_modules(self, *modules: str) -> bool:
1084
+ pass
1085
+
1086
+ def restart_units(self, units: List[str]) -> bool:
1087
+ pass
1088
+
1089
+ def restart_unit(self, unit: str) -> bool:
1090
+ pass
1091
+
1092
+ def restart_unit_from(self, conf: SystemctlConf) -> bool:
1093
+ pass
1094
+
1095
+ def do_restart_unit_from(self, conf: SystemctlConf) -> bool:
1096
+ pass
1097
+
1098
+ def try_restart_modules(self, *modules: str) -> bool:
1099
+ pass
1100
+
1101
+ def try_restart_units(self, units: List[str]) -> bool:
1102
+ pass
1103
+
1104
+ def try_restart_unit(self, unit: str) -> bool:
1105
+ pass
1106
+
1107
+ def reload_or_restart_modules(self, *modules: str) -> bool:
1108
+ pass
1109
+
1110
+ def reload_or_restart_units(self, units: List[str]) -> bool:
1111
+ pass
1112
+
1113
+ def reload_or_restart_unit(self, unit: str) -> bool:
1114
+ pass
1115
+
1116
+ def reload_or_restart_unit_from(self, conf: SystemctlConf) -> bool:
1117
+ pass
1118
+
1119
+ def do_reload_or_restart_unit_from(self, conf: SystemctlConf) -> bool:
1120
+ pass
1121
+
1122
+ def reload_or_try_restart_modules(self, *modules: str) -> bool:
1123
+ pass
1124
+
1125
+ def reload_or_try_restart_units(self, units: List[str]) -> bool:
1126
+ pass
1127
+
1128
+ def reload_or_try_restart_unit(self, unit: str) -> bool:
1129
+ pass
1130
+
1131
+ def reload_or_try_restart_unit_from(self, conf: SystemctlConf) -> bool:
1132
+ pass
1133
+
1134
+ def do_reload_or_try_restart_unit_from(self, conf: SystemctlConf) -> bool:
1135
+ pass
1136
+
1137
+ def kill_modules(self, *modules: str) -> bool:
1138
+ pass
1139
+
1140
+ def kill_units(self, units: List[str]) -> bool:
1141
+ pass
1142
+
1143
+ def kill_unit(self, unit: str) -> bool:
1144
+ pass
1145
+
1146
+ def kill_unit_from(self, conf: SystemctlConf) -> bool:
1147
+ pass
1148
+
1149
+ def do_kill_unit_from(self, conf: SystemctlConf) -> bool:
1150
+ pass
1151
+
1152
+ def _kill_pid(self, pid: int, kill_signal: Optional[int]=None) -> bool:
1153
+ pass
1154
+
1155
+ def is_active_modules(self, *modules: str) -> List[str]:
1156
+ pass
1157
+
1158
+ def is_active_from(self, conf: SystemctlConf) -> bool:
1159
+ pass
1160
+
1161
+ def active_pid_from(self, conf: SystemctlConf) -> Optional[int]:
1162
+ pass
1163
+
1164
+ def is_active_pid(self, pid: Optional[int]) -> Optional[int]:
1165
+ pass
1166
+
1167
+ def get_active_unit(self, unit: str) -> str:
1168
+ pass
1169
+
1170
+ def get_active_from(self, conf: SystemctlConf) -> str:
1171
+ pass
1172
+
1173
+ def get_active_service_from(self, conf: Optional[SystemctlConf]) -> str:
1174
+ pass
1175
+
1176
+ def get_active_target_from(self, conf: SystemctlConf) -> str:
1177
+ pass
1178
+
1179
+ def get_active_target(self, target: str) -> str:
1180
+ pass
1181
+
1182
+ def get_active_target_list(self) -> List[str]:
1183
+ pass
1184
+
1185
+ def get_substate_from(self, conf: SystemctlConf) -> Optional[str]:
1186
+ pass
1187
+
1188
+ def is_failed_modules(self, *modules: str) -> List[str]:
1189
+ pass
1190
+
1191
+ def is_failed_from(self, conf: SystemctlConf) -> bool:
1192
+ pass
1193
+
1194
+ def reset_failed_modules(self, *modules: str) -> bool:
1195
+ pass
1196
+
1197
+ def reset_failed_unit(self, unit: str) -> bool:
1198
+ pass
1199
+
1200
+ def reset_failed_from(self, conf: SystemctlConf) -> bool:
1201
+ pass
1202
+
1203
+ def status_modules(self, *modules: str) -> str:
1204
+ pass
1205
+
1206
+ def status_units(self, units: List[str]) -> str:
1207
+ pass
1208
+
1209
+ def status_unit(self, unit: str) -> Tuple[int, str]:
1210
+ pass
1211
+
1212
+ def cat_modules(self, *modules: str) -> str:
1213
+ pass
1214
+
1215
+ def cat_units(self, units: List[str]) -> str:
1216
+ pass
1217
+
1218
+ def cat_unit(self, unit: str) -> Optional[str]:
1219
+ pass
1220
+
1221
+ def preset_modules(self, *modules: str) -> bool:
1222
+ pass
1223
+
1224
+ def preset_units(self, units: List[str]) -> bool:
1225
+ pass
1226
+
1227
+ def preset_all_modules(self, *modules: str) -> bool:
1228
+ pass
1229
+
1230
+ def enablefolders(self, wanted: str) -> Iterable[str]:
1231
+ pass
1232
+
1233
+ def enablefolder(self, wanted: str) -> str:
1234
+ pass
1235
+
1236
+ def default_enablefolder(self, wanted: str, basefolder: Optional[str]=None) -> str:
1237
+ pass
1238
+
1239
+ def enable_modules(self, *modules: str) -> bool:
1240
+ pass
1241
+
1242
+ def enable_units(self, units: List[str]) -> bool:
1243
+ pass
1244
+
1245
+ def enable_unit(self, unit: str) -> bool:
1246
+ pass
1247
+
1248
+ def enable_unit_from(self, conf: SystemctlConf) -> bool:
1249
+ pass
1250
+
1251
+ def rc3_root_folder(self) -> str:
1252
+ pass
1253
+
1254
+ def rc5_root_folder(self) -> str:
1255
+ pass
1256
+
1257
+ def enable_unit_sysv(self, unit_file: str) -> bool:
1258
+ pass
1259
+
1260
+ def _enable_unit_sysv(self, unit_file: str, rc_folder: str) -> bool:
1261
+ pass
1262
+
1263
+ def disable_modules(self, *modules: str) -> bool:
1264
+ pass
1265
+
1266
+ def disable_units(self, units: List[str]) -> bool:
1267
+ pass
1268
+
1269
+ def disable_unit(self, unit: str) -> bool:
1270
+ pass
1271
+
1272
+ def disable_unit_from(self, conf: SystemctlConf) -> bool:
1273
+ pass
1274
+
1275
+ def disable_unit_sysv(self, unit_file: str) -> bool:
1276
+ pass
1277
+
1278
+ def _disable_unit_sysv(self, unit_file: str, rc_folder: str) -> bool:
1279
+ pass
1280
+
1281
+ def is_enabled_sysv(self, unit_file: str) -> bool:
1282
+ pass
1283
+
1284
+ def is_enabled_modules(self, *modules: str) -> List[str]:
1285
+ pass
1286
+
1287
+ def is_enabled_units(self, units: List[str]) -> List[str]:
1288
+ pass
1289
+
1290
+ def is_enabled(self, unit: str) -> bool:
1291
+ pass
1292
+
1293
+ def enabled_unit(self, unit: str) -> str:
1294
+ pass
1295
+
1296
+ def enabled_from(self, conf: SystemctlConf) -> str:
1297
+ pass
1298
+
1299
+ def get_enabled_from(self, conf: SystemctlConf) -> str:
1300
+ pass
1301
+
1302
+ def mask_modules(self, *modules: str) -> bool:
1303
+ pass
1304
+
1305
+ def mask_units(self, units: List[str]) -> bool:
1306
+ pass
1307
+
1308
+ def mask_unit(self, unit: str) -> bool:
1309
+ pass
1310
+
1311
+ def mask_folder(self) -> str:
1312
+ pass
1313
+
1314
+ def mask_folders(self) -> Iterable[str]:
1315
+ pass
1316
+
1317
+ def unmask_modules(self, *modules: str) -> bool:
1318
+ pass
1319
+
1320
+ def unmask_units(self, units: List[str]) -> bool:
1321
+ pass
1322
+
1323
+ def unmask_unit(self, unit: str) -> bool:
1324
+ pass
1325
+
1326
+ def list_dependencies_modules(self, *modules: str) -> List[str]:
1327
+ pass
1328
+
1329
+ def list_dependencies_units(self, units: List[str]) -> List[str]:
1330
+ pass
1331
+
1332
+ def list_dependencies_unit(self, unit: str) -> List[str]:
1333
+ pass
1334
+
1335
+ def list_start_dependencies_modules(self, *modules: str) -> List[Tuple[str, str]]:
1336
+ pass
1337
+
1338
+ def daemon_reload_target(self) -> bool:
1339
+ pass
1340
+
1341
+ def show_modules(self, *modules: str) -> List[str]:
1342
+ pass
1343
+
1344
+ def show_units(self, units: List[str]) -> List[str]:
1345
+ pass
1346
+
1347
+ def show_unit_items(self, unit: str) -> Iterable[Tuple[str, str]]:
1348
+ pass
1349
+
1350
+ def each_unit_items(self, unit: str, conf: SystemctlConf) -> Iterable[Tuple[str, str]]:
1351
+ pass
1352
+
1353
+ def _ignored_unit(self, unit: str, ignore_list: List[str]) -> bool:
1354
+ pass
1355
+
1356
+ def default_services_modules(self, *modules: str) -> List[str]:
1357
+ pass
1358
+
1359
+ def target_default_services(self, target: Optional[str]=None, sysv: str='S') -> List[str]:
1360
+ pass
1361
+
1362
+ def enabled_target_services(self, target: str, sysv: str='S', igno: Optional[List[str]]=None) -> List[str]:
1363
+ pass
1364
+
1365
+ def enabled_target_user_local_units(self, target: str, unit_kind: str='.service', igno: Optional[List[str]]=None) -> List[str]:
1366
+ pass
1367
+
1368
+ def enabled_target_user_system_units(self, target: str, unit_kind: str='.service', igno: Optional[List[str]]=None) -> List[str]:
1369
+ pass
1370
+
1371
+ def enabled_target_installed_system_units(self, target: str, unit_type: str='.service', igno: Optional[List[str]]=None) -> List[str]:
1372
+ pass
1373
+
1374
+ def enabled_target_configured_system_units(self, target: str, unit_type: str='.service', igno: Optional[List[str]]=None) -> List[str]:
1375
+ pass
1376
+
1377
+ def enabled_target_sysv_units(self, target: str, sysv: str='S', igno: Optional[List[str]]=None) -> List[str]:
1378
+ pass
1379
+
1380
+ def required_target_units(self, target: str, unit_type: str, igno: List[str]) -> List[str]:
1381
+ pass
1382
+
1383
+ def default_system(self, arg: bool=True) -> bool:
1384
+ pass
1385
+
1386
+ def start_system_default(self, init: int=0) -> bool:
1387
+ pass
1388
+
1389
+ def start_target_system(self, target: str, init: int=False) -> List[str]:
1390
+ pass
1391
+
1392
+ def do_start_target_from(self, conf: SystemctlConf) -> bool:
1393
+ pass
1394
+
1395
+ def stop_system_default(self) -> bool:
1396
+ pass
1397
+
1398
+ def stop_target_system(self, target: str) -> List[str]:
1399
+ pass
1400
+
1401
+ def do_stop_target_from(self, conf: SystemctlConf) -> bool:
1402
+ pass
1403
+
1404
+ def do_reload_target_from(self, conf: SystemctlConf) -> bool:
1405
+ pass
1406
+
1407
+ def reload_target_system(self, target: str) -> bool:
1408
+ pass
1409
+
1410
+ def halt_target(self, arg: bool=True) -> bool:
1411
+ pass
1412
+
1413
+ def system_get_default(self) -> str:
1414
+ pass
1415
+
1416
+ def get_targets_folder(self) -> str:
1417
+ pass
1418
+
1419
+ def get_default_target_file(self) -> str:
1420
+ pass
1421
+
1422
+ def get_default_target(self, default_target: Optional[str]=None) -> str:
1423
+ pass
1424
+
1425
+ def set_default_modules(self, *modules: str) -> str:
1426
+ pass
1427
+
1428
+ def init_modules(self, *modules: str) -> bool:
1429
+ pass
1430
+
1431
+ def start_log_files(self, units: List[str]) -> None:
1432
+ pass
1433
+
1434
+ def read_log_files(self, units: List[str]) -> None:
1435
+ pass
1436
+
1437
+ def print_log_files(self, units: List[str], stdout: int=1) -> int:
1438
+ pass
1439
+
1440
+ def stop_log_files(self, units: List[str]) -> None:
1441
+ pass
1442
+
1443
+ def restart_failed_units(self, units: List[str], maximum: Optional[int]=None) -> List[str]:
1444
+ pass
1445
+
1446
+ def init_loop_until_stop(self, units: List[str]) -> Optional[str]:
1447
+ pass
1448
+
1449
+ def reap_zombies_target(self) -> str:
1450
+ pass
1451
+
1452
+ def reap_zombies(self) -> int:
1453
+ pass
1454
+
1455
+ def sysinit_status(self, **status: Optional[str]) -> None:
1456
+ pass
1457
+
1458
+ def sysinit_target(self) -> SystemctlConf:
1459
+ pass
1460
+
1461
+ def is_system_running(self) -> str:
1462
+ pass
1463
+
1464
+ def is_system_running_info(self) -> Optional[str]:
1465
+ pass
1466
+
1467
+ def wait_system(self, target: Optional[str]=None) -> None:
1468
+ pass
1469
+
1470
+ def is_running_unit_from(self, conf: SystemctlConf) -> bool:
1471
+ pass
1472
+
1473
+ def is_running_unit(self, unit: str) -> bool:
1474
+ pass
1475
+
1476
+ def pidlist_of(self, pid: Optional[int]) -> List[int]:
1477
+ pass
1478
+
1479
+ def echo(self, *targets: str) -> str:
1480
+ pass
1481
+
1482
+ def killall(self, *targets: str) -> bool:
1483
+ pass
1484
+
1485
+ def force_ipv4(self) -> None:
1486
+ pass
1487
+
1488
+ def force_ipv6(self) -> None:
1489
+ pass
1490
+
1491
+ def help_list(self, show_all: Optional[int]=None) -> Dict[str, str]:
1492
+ pass
1493
+
1494
+ def help_modules(self, *args: str) -> List[str]:
1495
+ pass
1496
+
1497
+ def systemd_version(self) -> str:
1498
+ pass
1499
+
1500
+ def systemd_features(self) -> str:
1501
+ pass
1502
+
1503
+ def version_info(self) -> List[str]:
1504
+ pass
1505
+
1506
+ def test_float(self) -> float:
1507
+ pass
1508
+
1509
+ def print_begin(argv: List[str], args: List[str]) -> None:
1510
+ pass
1511
+
1512
+ def print_begin2(args: List[str]) -> None:
1513
+ pass
1514
+
1515
+ def is_not_ok(result: bool) -> int:
1516
+ pass
1517
+
1518
+ def print_str(result: Optional[str]) -> None:
1519
+ pass
1520
+
1521
+ def print_str_list(result: Union[None, List[str]]) -> None:
1522
+ pass
1523
+
1524
+ def print_str_list_list(result: Union[List[Tuple[str]], List[Tuple[str, str]], List[Tuple[str, str, str]]]) -> None:
1525
+ pass
1526
+
1527
+ def print_str_dict(result: Union[None, Dict[str, str]]) -> None:
1528
+ pass
1529
+
1530
+ def runcommand(command: str, *modules: str) -> int:
1531
+ pass
1532
+
1533
+ def main() -> int:
1534
+ pass