Skip to content

Instantly share code, notes, and snippets.

View andydvsn's full-sized avatar
😎
I may be slow to respond.

Andrew Davison andydvsn

😎
I may be slow to respond.
View GitHub Profile
@andydvsn
andydvsn / dropbox
Created May 24, 2018 09:03 — forked from anonymous/dropbox
/etc/init.d/dropbox
#!/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}
@andydvsn
andydvsn / dropbox.service
Last active May 24, 2018 09:03 — forked from anonymous/dropbox.service
dropbox.service
[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_GB.utf8
Environment=LANG=en_GB.utf8
EnvironmentFile=-/etc/sysconfig/dropbox
ExecStart=/etc/init.d/dropbox start
ExecReload=/etc/init.d/dropbox restart