Last active
December 20, 2015 23:58
-
-
Save nearapogee/6216064 to your computer and use it in GitHub Desktop.
How I start CopyConsole
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 characters
#!/usr/bin/env ruby | |
require 'base64' | |
puts Base64.decode64(ARGV[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 characters
[configuration] | |
hostUuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
[email protected] | |
root=/home/xxx/Copy | |
password=$(/usr/local/scripts/bdecode xxx-base64-password-for-visual-safety-xxx=) |
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 characters
# 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