Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CentOS7 Home Server Startup Script for Paperless-ng
echo "This is my /var/tmp/startup_script.sh to auto run during boot" > /var/tmp/script.out
echo "The time the script run was --> `date`" >> /var/tmp/script.out
# See ~/Desktop/README.md Set inotify capacity for Paperless-ng
#
cat /proc/sys/fs/inotify/max_user_watches # default is 8192
sudo sysctl fs.inotify.max_user_watches=1048576 # increase to 1048576
echo "Parameter for inotify increased, max_user_watches=1048576" >> /var/tmp/script.out
# Start Paperless-ng
#
cd ~/GitHub/paperless-ng-dockerfiles
docker-compose up -d
echo "Paperless-ng should be started. Visit it at http://localhost:8000" >> /var/tmp/script.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment