Skip to content

Instantly share code, notes, and snippets.

@coulof
Last active February 4, 2021 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coulof/ed08dbd4e03794090711b5537b2c02bf to your computer and use it in GitHub Desktop.
Save coulof/ed08dbd4e03794090711b5537b2c02bf to your computer and use it in GitHub Desktop.
Systemd Unit for kubectl-fzf cache_builder
[Unit]
Description=Cache Builder for Kubectl-FZF Service
[Service]
Environment=KUBECTL_FZF_CACHE=%h/tmp/kubectl_fzf_cache
Type=forking
ExecStart=%h/bin/cache_builder --daemon start --daemon-pid-file /run/user/%U/cache_builder.pid --daemon-log-file /tmp/cache_builder-%u.log
ExecStop=%h/bin/cache_builder --daemon stop --daemon-pid-file /run/user/%U/cache_builder.pid
PIDFile=/run/user/%U/cache_builder.pid
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment