Last active
August 20, 2023 22:14
-
-
Save jamesog/0b9c8274eeb4719782d9630a3b5d09ee to your computer and use it in GitHub Desktop.
Revisions
-
jamesog revised this gist
Mar 29, 2020 . 2 changed files with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,14 +11,13 @@ rcvar="${name}_enable" load_rc_config $name : ${tailscaled_enable:="NO"} : ${tailscaled_state:="/var/db/${name}/${name}.state"} procname="/usr/local/sbin/${name}" pidfile="/var/run/${name}/${name}.pid" pidfile_supervisor="/var/run/${name}/${name}_supervisor.pid" command="/usr/sbin/daemon" command_args="-c -S -T tailscaled -p $pidfile -P $pidfile_supervisor $procname --state $tailscaled_state $tailscaled_flags" stop_postcmd="${name}_poststop" tailscaled_poststop() { -
jamesog revised this gist
Mar 29, 2020 . 2 changed files with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ /var/log/tailscaled.log 600 7 1000 * J /var/run/tailscaled/tailscaled_supervisor.pid This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,8 +16,9 @@ load_rc_config $name procname="/usr/local/sbin/${name}" pidfile="/var/run/${name}/${name}.pid" pidfile_supervisor="/var/run/${name}/${name}_supervisor.pid" command="/usr/sbin/daemon" command_args="-c -o $tailscaled_log -p $pidfile -P $pidfile_supervisor $procname --state $tailscaled_state $tailscaled_flags" stop_postcmd="${name}_poststop" tailscaled_poststop() { -
jamesog created this gist
Mar 29, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ #!/bin/sh # # PROVIDE: tailscaled tailscale # REQUIRE: NETWORKING . /etc/rc.subr name="tailscaled" rcvar="${name}_enable" load_rc_config $name : ${tailscaled_enable:="NO"} : ${tailscaled_log:="/var/log/${name}.log"} : ${tailscaled_state:="/var/db/${name}/${name}.state"} procname="/usr/local/sbin/${name}" pidfile="/var/run/${name}/${name}.pid" command="/usr/sbin/daemon" command_args="-c -o $tailscaled_log -p $pidfile $procname --state $tailscaled_state $tailscaled_flags" stop_postcmd="${name}_poststop" tailscaled_poststop() { /sbin/ifconfig tailscale0 destroy } run_rc_command "$1"