1 ### BEGIN INIT INFO 2 # Provides: FOGSnapinReplicator 3 # Required-Start: $local_fs $remote_fs $network $syslog $network $inetd 4 # Required-Stop: $local_fs $remote_fs $network $syslog $network $inetd 5 # Default-Start: 2 3 4 5 6 # Default-Stop: 0 1 6 7 # X-Interactive: true 8 # Short-Description: Start/Stop FOGSnapinReplicator 9 # Long-Description: Created by David Fear 10 # Used to stop and start the FOGSnapinReplicator Service. 11 # FOGSnapinReplicator enacts upon the FOG System to replicate 12 # Snapins to nodes. It only replicates if it is the master node. 13 ### END INIT INFO 14 15 [Unit] 16 Description=FOGSnapinReplicator 17 After=syslog.target network.target network-online.target mysql.service 18 StartLimitIntervalSec=0 19 20 [Service] 21 Type=simple 22 Restart=always 23 RestartSec=1 24 ExecStart=/usr/bin/env php /opt/fog/service/FOGSnapinReplicator/FOGSnapinReplicator 25 26 [Install] 27 WantedBy=multi-user.target