Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to start mysql.server and postfix at boot


    Hi folks,


    Debian Etch


    I installed mysql and postfix from source. They can be started with:
    Code:
    # /etc/init.d/mysql.server start
    # /usr/local/mysql/share/mysql/mysql.server start
    # postfix start
    Both are now running. But I can't make them started at boot. Tried on /etc/rc.local;

    mysql - testing them one by one
    Code:
    /etc/init.d/mysql.server
    /etc/init.d/mysql.server start
    echo /etc/init.d/mysql.server start
    /usr/local/mysql/share/mysql/mysql.server
    /usr/local/mysql/share/mysql/mysql.server start
    echo /usr/local/mysql/share/mysql/mysql.server start
    etc.
    none of them can work.

    postfix - testing them one by one
    Code:
    postfix start
    echo postfix start
    /usr/sbin/postfix start
    echo /usr/sbin/postfix start
    echo /usr/sbin/postfix
    etc.
    none of them can work.


    However both of follows on /etc/rc.local
    Code:
    /usr/local/bind/sbin/named -u named -t /usr/local/bind -c /etc/named.conf
    /usr/local/sbin/clamd
    su - amavis -c "/usr/local/sbin/amavisd"
    work without problem.


    Please advise how to get mysql.server and postfix started at boot. TIA


    B.R.
    satimis

  2. #2
    Just Joined! TuxKnight's Avatar
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    28
    Add the following cronjob

    HTML Code:
    @reboot /etc/init.d/mysql start
    @reboot /etc/init.d/postfix start

  3. #3
    Quote Originally Posted by TuxKnight View Post
    Add the following cronjob

    HTML Code:
    @reboot /etc/init.d/mysql start
    @reboot /etc/init.d/postfix start
    Noted with thanks


    B.R.
    satimis

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •