Project

General

Profile

Actions

Disabilitare avvio server

Sul pc di sviluppo non vogliamo avere tutti i servizi avviati di default quando accendiamo il computer.

MYSQL

-------------------------------------------------------------
--- Non funziona
Modificare le righe all'inizio del file

/ets/init/mysql.conf

e commentare la riga che riporta start on con # spazio

description     "MySQL 5.7 Server" 
author          "Mario Limonciello <superm1@ubuntu.com>" 

# start on runlevel [2345]

stop on starting rc RUNLEVEL=[016]

-------------------------------------------------------------
$ sudo update-rc.d mysql disable

Per avviare manualmente il server occore

$ sudo service mysql start

Apache 2

$ sudo update-rc.d apache2 disable

RabbitMQ

sudo update-rc.d rabbitmq-server disable

Virtualbox

sudo update-rc.d virtualbox disable

Docker

sudo update-rc.d docker disable

Postgresql

sudo update-rc.d postgresql disable

Script per il riavvio

#! /bin/bash

## Start Mysql
sudo service mysql start

## Start Apache2
sudo service apache2 start

## Start RabbitMQ
sudo service rabbitmq-server start

## Start Virtualbox
sudo service virtualbox start

## Start Docker
sudo service docker start

## Start Postgresql
sudo service postgresql start

Updated by Gabor Murray almost 6 years ago · 8 revisions