Skip to content

Instantly share code, notes, and snippets.

@vasi
Created April 4, 2024 21:30
Show Gist options
  • Save vasi/b6ae026cbf861331fabc67d5e52a293c to your computer and use it in GitHub Desktop.
Save vasi/b6ae026cbf861331fabc67d5e52a293c to your computer and use it in GitHub Desktop.
rc.d script for touchegg
#!/bin/sh
# PROVIDE: touchegg
# REQUIRE: DAEMON
# KEYWORD: nojail
. /etc/rc.subr
name="touchegg"
rcvar="${name}_enable"
command="/usr/sbin/daemon"
pidfile="/var/run/${name}.pid"
command_args="-c -f -P ${pidfile} -r /usr/local/bin/touchegg --daemon"
start_precmd="touchegg_prestart"
touchegg_prestart()
{
rm -f '/tmp/touchegg#0'
umask 002
}
load_rc_config $name
run_rc_command "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment