Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| [Unit] | |
| Description=GoPhish Service | |
| After=network.target | |
| [Service] | |
| ExecStart=/opt/gophish/gophish | |
| Type=simple | |
| PIDFile=/var/run/gophish | |
| User=gophish | |
| WorkingDirectory=/opt/gophish |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: gophish | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start daemon at boot time | |
| # Description: Enable service provided by daemon. | |
| ### END INIT INFO |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)