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=RClone Service | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
Type=notify | |
Environment=RCLONE_CONFIG=/YOUR_PATH/rclone/rclone.conf | |
RestartSec=5 | |
ExecStart=/usr/bin/rclone mount dcrypt: /YOUR/MOUNT/POINT/FOLDER \ |
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 | |
#Check the Drive Space Used by Cached Files | |
du -sh /var/cache/apt/archives | |
#Clean all the log file | |
#for logs in `find /var/log -type f`; do > $logs; done | |
logs=`find /var/log -type f` | |
for i in $logs |
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=RClone Service | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
Type=notify | |
Environment=RCLONE_CONFIG=/home/plex/.config/rclone/rclone.conf | |
ExecStart=/usr/bin/rclone mount Googlecrypt: /home/plex/mnt \ | |
--allow-other \ |
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 | |
EXCLUDE=/home/plex/scripts/exclude-file.txt | |
LOGFILE=/home/plex/logs/rclone-upload.log | |
FROM=/home/plex/move | |
TO=Googlecrypt:/ | |
if pidof -o %PPID -x "rclone-upload.sh"; then | |
exit 1 | |
fi | |
# CHECK FOR FILES IN FROM FOLDER THAT ARE OLDER THAN 15 MINUTES |
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=OpenVPN Robust And Highly Flexible Tunneling Application On <server> | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
Type=forking | |
PIDFile=/run/openvpn-server.pid | |
ExecStart=/usr/sbin/openvpn --daemon --writepid /run/openvpn-server.pid --cd /etc/openvpn/ --auth-nocache --config TorGuard.Sweden.conf --log-append /var/log/openvpn.log | |
Restart=on-failure |
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 | |
# Share Wifi with Eth device | |
# Original source: | |
# https://raw.githubusercontent.com/arpitjindal97/raspbian-recipes/master/wifi-to-eth-route.sh | |
# | |
# This script is created to work with Raspbian Stretch | |
# but it can be used with most of the distributions | |
# by making few changes. | |
# |
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 | |
# Share Wifi with Eth device | |
# Original source: | |
# https://raw.githubusercontent.com/arpitjindal97/raspbian-recipes/master/wifi-to-eth-route.sh | |
# This script is created to work with Raspbian Stretch | |
# but it can be used with most of the distributions | |
# by making few changes. | |
# | |
# Make sure you have already installed `dnsmasq` |
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=Sonarr Daemon | |
After=syslog.target network.target | |
[Service] | |
User=plex | |
Group=plex | |
Type=simple | |
ExecStart=/usr/bin/mono /opt/NzbDrone/NzbDrone.exe -nobrowser |
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=mergerfs mount | |
Requires=rclonemount.service | |
After=rclonemount.service | |
RequiresMountsFor=/home/plex/mnt | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/mergerfs /home/plex/move:/home/plex/mnt /home/plex/media -o rw,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=auto-full | |
KillMode=process |
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 | |
#remove empty directories | |
find /home/plex/move/ -empty -type d -delete 2>/dev/null |
NewerOlder