Skip to content

Instantly share code, notes, and snippets.

@noogen
Last active November 27, 2017 20:17
Show Gist options
  • Select an option

  • Save noogen/174479ba7c78a5d8944e3f28edc90c50 to your computer and use it in GitHub Desktop.

Select an option

Save noogen/174479ba7c78a5d8944e3f28edc90c50 to your computer and use it in GitHub Desktop.
my-startup.sh
#!/bin/sh
# re-enable phpmyadmin and phppgadmin
# rsync -a /etc/apache2/conf-d/php*.conf /etc/apache2/conf.d
# required startup and of course vesta
cd /etc/init.d/
./disable-transparent-hugepages defaults
# the 5 services below are enabled to support mininum default backup job
./apache2 start \
&& ./mysql start
# delete defult postgres admindb if not use, then comment out the line below
./postgresql start
./nginx start
./vesta start
# if you run it like this, you can see the error
./exim4 start || true
./dovecot start || true
./clamav-daemon start || true
./spamassassin start || true
./php7.1-fpm start || true
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment