Skip to content

Instantly share code, notes, and snippets.

View thisismitch's full-sized avatar

Mitchell Anicas thisismitch

View GitHub Profile
@thisismitch
thisismitch / dropbox
Last active March 26, 2018 02:13 — forked from kbrnsr/dropbox
Dropbox systemd and init files (CentOS 7)
#!/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}
@thisismitch
thisismitch / dropbox
Last active April 21, 2022 19:12 — forked from migrs/dropbox
/etc/init.d/dropbox
#!/bin/sh
### BEGIN INIT INFO
# Provides: dropbox
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
# Short-Description: dropbox service
### END INIT INFO