Skip to content

Instantly share code, notes, and snippets.

@nearapogee
Last active December 20, 2015 23:58
Show Gist options
  • Save nearapogee/6216064 to your computer and use it in GitHub Desktop.
Save nearapogee/6216064 to your computer and use it in GitHub Desktop.
How I start CopyConsole
#!/usr/bin/env ruby
require 'base64'
puts Base64.decode64(ARGV[0])
[configuration]
hostUuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
username=xxx@xxx.xxx
root=/home/xxx/Copy
password=$(/usr/local/scripts/bdecode xxx-base64-password-for-visual-safety-xxx=)
# replace xxx with your username
pre-start script
bash << "EOF"
mkdir -p /var/log/Copy
chown -R xxx /var/log/Copy
EOF
end script
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [06]
respawn
exec su - xxx -c 'CopyConsole -daemon >> /var/log/Copy/copy.log 2>&1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment