#!/sbin/openrc-run
# Generated by ../utrans from:
#  e59b2780e736677dd241446be95ce462d424835f9f89cb8d436edfe8e425b337  ./input/foot-server@.socket
#  f52ef5b77326683f25aa843089c7f768637f08753a7c57996a8f7b0334de32f6  ./input/foot-server@.service

description="Foot terminal server mode for WAYLAND_DISPLAY=${RC_SVCNAME#*.}."
# Documentation:
#  man:foot(1)

supervisor="supervise-daemon"
command="/usr/bin/socket-activate"
command_args="--unix::${XDG_RUNTIME_DIR:-/run}/foot-${RC_SVCNAME#*.}.sock -- /usr/bin/foot --server=3"
depend() {
    use mountnfs mountnfs-bootclean umountnfs sendsigs mountall mountall-bootclean mountoverflowtmp umountfs
    after mountnfs mountnfs-bootclean umountnfs sendsigs mountall mountall-bootclean mountoverflowtmp umountfs
}
start_pre() {
  if [ -z "${RC_SVCNAME#*.}" ]; then
    eerror "${RC_SVCNAME} cannot be started directly."
    eerror "You must make symbolic links to the instances you want to start."
    return 1
  fi
}
