Skip to main content

systemd

成员函数函数描述/介绍
systemd.Create
systemd.extra_raw
systemd.install_wanted_by
systemd.service_environment
systemd.service_environment_file
systemd.service_exec_start
systemd.service_exec_start_post
systemd.service_exec_start_pre
systemd.service_exec_stop
systemd.service_exec_stop_post
systemd.service_group
systemd.service_kill9
systemd.service_kill_mode
systemd.service_kill_signal
systemd.service_raw
systemd.service_restart
systemd.service_restart_sec
systemd.service_stderr
systemd.service_stdin
systemd.service_stdout
systemd.service_timeout_start_sec
systemd.service_type
systemd.service_umask
systemd.service_user
systemd.timer_active_sec
systemd.timer_boot_sec
systemd.timer_calendar
systemd.timer_raw
systemd.timer_startup_sec
systemd.timer_unit
systemd.timer_unit_active_sec
systemd.timer_unit_inactive_sec
systemd.unit_after
systemd.unit_before
systemd.unit_binds_to
systemd.unit_description
systemd.unit_documentation
systemd.unit_extra_line
systemd.unit_requires
systemd.unit_wants

函数定义#

Create#

详细描述#

定义#

Create(name string, opt ...ConfigOption) (string, string)

参数#

参数名参数类型参数解释
namestring
opt...ConfigOption

返回值#

返回值(顺序)返回值类型返回值解释
r1string
r2string

extra_raw#

详细描述#

定义#

extra_raw(i string) ConfigOption

参数#

参数名参数类型参数解释
istring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

install_wanted_by#

详细描述#

定义#

install_wanted_by(wantedBy string) ConfigOption

参数#

参数名参数类型参数解释
wantedBystring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_environment#

详细描述#

定义#

service_environment(environment string) ConfigOption

参数#

参数名参数类型参数解释
environmentstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_environment_file#

详细描述#

定义#

service_environment_file(environmentFile string) ConfigOption

参数#

参数名参数类型参数解释
environmentFilestring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_exec_start#

详细描述#

定义#

service_exec_start(execStart string) ConfigOption

参数#

参数名参数类型参数解释
execStartstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_exec_start_post#

详细描述#

定义#

service_exec_start_post(execStartPost string) ConfigOption

参数#

参数名参数类型参数解释
execStartPoststring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_exec_start_pre#

详细描述#

定义#

service_exec_start_pre(execStartPre string) ConfigOption

参数#

参数名参数类型参数解释
execStartPrestring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_exec_stop#

详细描述#

定义#

service_exec_stop(execStop string) ConfigOption

参数#

参数名参数类型参数解释
execStopstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_exec_stop_post#

详细描述#

定义#

service_exec_stop_post(execStopPost string) ConfigOption

参数#

参数名参数类型参数解释
execStopPoststring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_group#

详细描述#

定义#

service_group(group string) ConfigOption

参数#

参数名参数类型参数解释
groupstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_kill9#

详细描述#

定义#

service_kill9(c *SystemdServiceConfig)

参数#

参数名参数类型参数解释
c*SystemdServiceConfig

返回值#

返回值(顺序)返回值类型返回值解释
r1``

service_kill_mode#

详细描述#

定义#

service_kill_mode(killMode string) ConfigOption

参数#

参数名参数类型参数解释
killModestring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_kill_signal#

详细描述#

定义#

service_kill_signal(killSignal string) ConfigOption

参数#

参数名参数类型参数解释
killSignalstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_raw#

详细描述#

定义#

service_raw(extraLine string) ConfigOption

参数#

参数名参数类型参数解释
extraLinestring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_restart#

详细描述#

定义#

service_restart(restart string) ConfigOption

参数#

参数名参数类型参数解释
restartstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_restart_sec#

详细描述#

定义#

service_restart_sec(restartSec float64) ConfigOption

参数#

参数名参数类型参数解释
restartSecfloat64

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_stderr#

详细描述#

定义#

service_stderr(standardError string) ConfigOption

参数#

参数名参数类型参数解释
standardErrorstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_stdin#

详细描述#

定义#

service_stdin(standardInput string) ConfigOption

参数#

参数名参数类型参数解释
standardInputstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_stdout#

详细描述#

定义#

service_stdout(standardOutput string) ConfigOption

参数#

参数名参数类型参数解释
standardOutputstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_timeout_start_sec#

详细描述#

定义#

service_timeout_start_sec(timeoutStartSec float64) ConfigOption

参数#

参数名参数类型参数解释
timeoutStartSecfloat64

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_type#

详细描述#

定义#

service_type(serviceType string) ConfigOption

参数#

参数名参数类型参数解释
serviceTypestring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_umask#

详细描述#

定义#

service_umask(umask string) ConfigOption

参数#

参数名参数类型参数解释
umaskstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

service_user#

详细描述#

定义#

service_user(user string) ConfigOption

参数#

参数名参数类型参数解释
userstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

timer_active_sec#

详细描述#

定义#

timer_active_sec(onActiveSec int64) ConfigOption

参数#

参数名参数类型参数解释
onActiveSecint64

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

timer_boot_sec#

详细描述#

定义#

timer_boot_sec(onBootSec int64) ConfigOption

参数#

参数名参数类型参数解释
onBootSecint64

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

timer_calendar#

详细描述#

定义#

timer_calendar(onCalendar string) ConfigOption

参数#

参数名参数类型参数解释
onCalendarstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

timer_raw#

详细描述#

定义#

timer_raw(extraLine string) ConfigOption

参数#

参数名参数类型参数解释
extraLinestring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

timer_startup_sec#

详细描述#

定义#

timer_startup_sec(onStartupSec int64) ConfigOption

参数#

参数名参数类型参数解释
onStartupSecint64

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

timer_unit#

详细描述#

定义#

timer_unit(unit string) ConfigOption

参数#

参数名参数类型参数解释
unitstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

timer_unit_active_sec#

详细描述#

定义#

timer_unit_active_sec(onUnitActiveSec int64) ConfigOption

参数#

参数名参数类型参数解释
onUnitActiveSecint64

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

timer_unit_inactive_sec#

详细描述#

定义#

timer_unit_inactive_sec(s int64) ConfigOption

参数#

参数名参数类型参数解释
sint64

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

unit_after#

详细描述#

定义#

unit_after(after string) ConfigOption

参数#

参数名参数类型参数解释
afterstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

unit_before#

详细描述#

定义#

unit_before(before string) ConfigOption

参数#

参数名参数类型参数解释
beforestring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

unit_binds_to#

详细描述#

定义#

unit_binds_to(bindsTo string) ConfigOption

参数#

参数名参数类型参数解释
bindsTostring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

unit_description#

详细描述#

定义#

unit_description(description string) ConfigOption

参数#

参数名参数类型参数解释
descriptionstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

unit_documentation#

详细描述#

定义#

unit_documentation(documentation string) ConfigOption

参数#

参数名参数类型参数解释
documentationstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

unit_extra_line#

详细描述#

定义#

unit_extra_line(extraLine string) ConfigOption

参数#

参数名参数类型参数解释
extraLinestring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

unit_requires#

详细描述#

定义#

unit_requires(requires string) ConfigOption

参数#

参数名参数类型参数解释
requiresstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption

unit_wants#

详细描述#

定义#

unit_wants(wants string) ConfigOption

参数#

参数名参数类型参数解释
wantsstring

返回值#

返回值(顺序)返回值类型返回值解释
r1ConfigOption