0.32: Installation Script messes on Debian



  • The installation script of Fog 0.32 messes with several things on Debian:

    • It doesn’t use a2enmod to enable php5 module in Apache, instead it copies php5.load and php5.conf in /etc/apache2/mods-enabled which is wrong. It should leave the files in /etc/apache2/mods-available and call a2enmod.

    • It messes in rcX.d. Do not change existing startup links in here please, this is not the job of the installer. To fix startup issues you should use lsb tags in your init scripts.

    • It leaves several .fogbackup files behind, even if the originating folder oder file wasn’t changed by the installer.

    • The init scripts FOGScheduler, FOGMulticastManager and FOGImageReplicator do not provide a header for dependency based booting. Please add such header, for example:

    /etc/init.d/FOGImageReplicator:
    #!/bin/sh

    BEGIN INIT INFO

    Provides: FOGImageReplicator

    Required-Start: $local_fs $remote_fs $network $syslog $network $inetd

    Required-Stop: $local_fs $remote_fs $network $syslog $network $inetd

    Default-Start: 3 4 5

    Default-Stop: 0 1 6

    X-Interactive: true

    Short-Description: Start/stop FOGImageReplicator

    END INIT INFO

    and for /etc/init.d/FOGScheduler:
    #!/bin/sh

    BEGIN INIT INFO

    Provides: FOGScheduler

    Required-Start: FOGImageReplicator

    Required-Stop: FOGImageReplicator

    Default-Start: 3 4 5

    Default-Stop: 0 1 6

    X-Interactive: true

    Short-Description: Start/stop FOGScheduler

    END INIT INFO

    I hope you can consider this for the next version. Thank you!

    Best regards, Adrian.


  • Senior Developer

    While a long time coming, I’ve added these suggestions to all three of the init.d files.


Log in to reply
 

367
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.