_systemd-run revision 4e79ac4425ae36a02ba511ebc1c63a9f1a7d2d37
2c786597c67139f4536078aee9c5ef08378908c2nd#compdef systemd-run
2c786597c67139f4536078aee9c5ef08378908c2nd
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd__systemctl() {
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd local -a _modes
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd _modes=("--user" "--system")
2c786597c67139f4536078aee9c5ef08378908c2nd systemctl ${words:*_modes} --full --no-legend --no-pager "$@" 2>/dev/null
2c786597c67139f4536078aee9c5ef08378908c2nd}
2c786597c67139f4536078aee9c5ef08378908c2nd
2c786597c67139f4536078aee9c5ef08378908c2nd__get_slices () {
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc __systemctl list-units --all -t slice \
2c786597c67139f4536078aee9c5ef08378908c2nd | { while read -r a b; do echo $a; done; };
2c786597c67139f4536078aee9c5ef08378908c2nd}
2c786597c67139f4536078aee9c5ef08378908c2nd
2e545ce2450a9953665f701bb05350f0d3f26275nd__slices () {
2c786597c67139f4536078aee9c5ef08378908c2nd local -a _slices
2c786597c67139f4536078aee9c5ef08378908c2nd _slices=(${(fo)"$(__get_slices)"})
2c786597c67139f4536078aee9c5ef08378908c2nd typeset -U _slices
2c786597c67139f4536078aee9c5ef08378908c2nd _describe 'slices' _slices
2c786597c67139f4536078aee9c5ef08378908c2nd}
2c786597c67139f4536078aee9c5ef08378908c2nd
2c786597c67139f4536078aee9c5ef08378908c2nd_arguments \
2c786597c67139f4536078aee9c5ef08378908c2nd {-h,--help}'[Show help message]' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--version[Show package version]' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--user[Run as user unit]' \
2c786597c67139f4536078aee9c5ef08378908c2nd {-H+,--host=}'[Operate on remote host]:[user@]host:_sd_hosts_or_user_at_host' \
2c786597c67139f4536078aee9c5ef08378908c2nd {-M+,--machine=}'[Operate on local container]:machines:_sd_machines' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--scope[Run this as scope rather than service]' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--unit=[Run under the specified unit name]:unit name' \
2c786597c67139f4536078aee9c5ef08378908c2nd {-p+,--property=}'[Set unit property]:NAME=VALUE:(( \
2c786597c67139f4536078aee9c5ef08378908c2nd CPUAccounting= MemoryAccounting= BlockIOAccounting= SendSIGHUP= \
2c786597c67139f4536078aee9c5ef08378908c2nd SendSIGKILL= MemoryLimit= CPUShares= BlockIOWeight= User= Group= \
2c786597c67139f4536078aee9c5ef08378908c2nd DevicePolicy= KillMode= DeviceAllow= BlockIOReadBandwidth= \
2c786597c67139f4536078aee9c5ef08378908c2nd BlockIOWriteBandwidth= BlockIODeviceWeight= Nice= Environment= \
2c786597c67139f4536078aee9c5ef08378908c2nd KillSignal= LimitCPU= LimitFSIZE= LimitDATA= LimitSTACK= \
2c786597c67139f4536078aee9c5ef08378908c2nd LimitCORE= LimitRSS= LimitNOFILE= LimitAS= LimitNPROC= \
2c786597c67139f4536078aee9c5ef08378908c2nd LimitMEMLOCK= LimitLOCKS= LimitSIGPENDING= LimitMSGQUEUE= \
2c786597c67139f4536078aee9c5ef08378908c2nd LimitNICE= LimitRTPRIO= LimitRTTIME= PrivateTmp= PrivateDevices= \
2c786597c67139f4536078aee9c5ef08378908c2nd PrivateNetwork= NoNewPrivileges= WorkingDirectory= RootDirectory= \
2c786597c67139f4536078aee9c5ef08378908c2nd TTYPath= SyslogIdentifier= SyslogLevelPrefix= SyslogLevel= \
2c786597c67139f4536078aee9c5ef08378908c2nd SyslogFacility= TimerSlackNSec= OOMScoreAdjust= ReadWriteDirectories= \
2c786597c67139f4536078aee9c5ef08378908c2nd ReadOnlyDirectories= InaccessibleDirectories= EnvironmentFile= \
2c786597c67139f4536078aee9c5ef08378908c2nd ProtectSystem= \
2c786597c67139f4536078aee9c5ef08378908c2nd ))' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--description=[Description for unit]:description' \
6e78b54cb721beced83b8b775ee142ae9fbfaa38nd '--slice=[Run in the specified slice]:slices:__slices' \
6e78b54cb721beced83b8b775ee142ae9fbfaa38nd {-r,--remain-after-exit}'[Leave service around until explicitly stopped]' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--send-sighup[Send SIGHUP when terminating]' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--service-type=[Service type]:type:(simple forking oneshot dbus notify idle)' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--uid=[Run as system user]:user:_users' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--gid=[Run as system group]:group:_groups' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--nice=[Nice level]:nice level' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--setenv=[Set environment]:NAME=VALUE' \
6c4ef4a72d9897e53365b94103f4bd819fd0d3acnd '--on-active=[Run after SEC seconds]:SEC' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--on-boot=[Run after SEC seconds from machine was booted up]:SEC' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--on-statup=[Run after SEC seconds from systemd was first started]:SEC' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--on-unit-active=[Run after SEC seconds from the last activation]:SEC' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--on-unit-inactive=[Run after SEC seconds from the last deactivation]:SEC' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--on-calendar=[Realtime timer]:SPEC' \
2c786597c67139f4536078aee9c5ef08378908c2nd '--timer-property=[Set timer unit property]:NAME=VALUE' \
2c786597c67139f4536078aee9c5ef08378908c2nd '*::command:_command'
2c786597c67139f4536078aee9c5ef08378908c2nd