This file contains 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
#!/bin/sh | |
# To configure, add line with DROPBOX_USERS="user1 user2" to /etc/sysconfig/dropbox | |
# Probably should use a dropbox group in /etc/groups instead. | |
# Source function library. | |
. /etc/rc.d/init.d/functions | |
prog=dropboxd | |
lockfile=${LOCKFILE-/var/lock/subsys/$prog} |
This file contains 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
[Unit] | |
Description=Dropbox is a filesyncing sevice provided by dropbox.com. This service starts up the dropbox daemon. | |
After=network.target syslog.target | |
[Service] | |
Environment=LC_ALL=en_US.UTF-8 | |
Environment=LANG=en_US.UTF-8 | |
EnvironmentFile=-/etc/sysconfig/dropbox | |
ExecStart=/bin/dropbox start | |
ExecReload=/bin/dropbox restart |
This file contains 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
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does | |
import hudson.model.*; | |
import hudson.util.*; | |
import jenkins.model.*; | |
import hudson.FilePath.FileCallable; | |
import hudson.slaves.OfflineCause; | |
import hudson.node_monitors.*; | |
for (node in Jenkins.instance.nodes) { |
This file contains 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
#!/bin/bash | |
# Created Fri Mar 22 2014 | |
# This is an indirect fork of https://gist.github.com/SeonghoonKim/4378896 | |
# Most of it was reworked from http://blog.basefarm.com/blog/how-to-install-logstash-with-kibana-interface-on-rhel/ | |
# This script will download, install and start | |
# the following items on CentOS 6.5: | |
# Logstash server 1.4.0 | |
# | |
# This script should be safe to run more than one time. YMMV | |
APP_ROOT="/opt" |