sdutil 0.1.0
Helpers for communicate with systemd
To use this package, run the following command in your project's root directory:
						Manual usage
						
						Put the following dependency into your project's dependences section:
					
SystemD util
Minimal dynamic bindings for libsystemd.so:
- int sd_notify(int unset_environment, const char* state)
- int sd_pid_notify(pid_t pid, int unset_environment, const char *state)
- int sd_journal_print(int priority, const char* fmt, ...)
- int sd_journal_send(const char* fmt, ...)
- int sd_journal_perror(const char *message)
with minimal wraps:
- int sdNotify(int unset_environment, string state)
- int sdNotify_ready(int unset_environment=0) @nogcsend- state="READY=1"
- int sdNotify_reloading(int unset_environment=0) @nogcsend- state="RELOADING=1"
- int sdNotify_stopping(int unset_environment=0) @nogcsend- state="STOPPING=1"
- int sdNotify_watchdog(int unset_environment=0) @nogcsend- state="WATCHDOG=1"
- int sdPidNotify(pid_t pid, int unset_environment, string state)
- int sdNotifyf(Args...)(int unset_environment, string fmt, Args args)with D- format
- int sdPidNotifyf(Args...)(pid_t pid, int unset_environment, string fmt, Args args)with D- format
and 2 std.experimental.logger.Logger implementations:
- SDSimpleLoggernot use- libsystemd, only specific format output to- stderr
- SDJournalLoggeruse- sd_journal_printin- writeLogMsgand call- initSystemDLibin ctor
See example
- 0.1.0 released 6 years ago
- deviator/sdutil
- MIT
- Copyright © 2019, deviator
- Authors:
- Dependencies:
- ssll
- Versions:
- 
						
 Show all 7 versions0.4.0 2019-Nov-25 0.3.0 2019-Aug-31 0.2.0 2019-Aug-23 0.1.2 2019-Jul-25 0.1.1 2019-May-08 
- Download Stats:
- 
						- 
								0 downloads today 
- 
								5 downloads this week 
- 
								13 downloads this month 
- 
								2171 downloads total 
 
- 
								
- Score:
- 1.5
- Short URL:
- sdutil.dub.pm