I am trying to create ngrok service in Kali Linux following this link:https://amito.me/2016/09/Building-Your-Own-Ngrok-Service-on-CentOS-7/
leafpad /usr/lib/systemd/system/ngrok.service
[Unit]
Description=ngrok server service
After=syslog.target network.target auditd.service
[Service]
Type=simple
User=root
ExecStart=/path/to/ngrok/bin/ngrok -domain=127.0.0.1 -httpAddr=:8000 -httpsAddr=:4443
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
Everything worked fine but when I start its not throwing any error but on querying its status:
systemctl status ngrok.service
● ngrok.service - ngrok server service
Loaded: loaded (/usr/lib/systemd/system/ngrok.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Mon 2018-05-28 01:33:21 +0430; 8min ago
Process: 14746 ExecStart=/home/linux/Downloads/ngrok-stable-linux-amd64/ngrok -domain=127.0.0.1 -httpAddr=:8000 -httpsAddr=:4443 (code=exited, statu
Main PID: 14746 (code=exited, status=0/SUCCESS)
May 28 01:33:21 Linux ngrok[14746]: authtoken save authtoken to configuration file
May 28 01:33:21 Linux ngrok[14746]: credits prints author and licensing information
May 28 01:33:21 Linux ngrok[14746]: http start an HTTP tunnel
May 28 01:33:21 Linux ngrok[14746]: start start tunnels by name from the configuration file
May 28 01:33:21 Linux ngrok[14746]: tcp start a TCP tunnel
May 28 01:33:21 Linux ngrok[14746]: tls start a TLS tunnel
May 28 01:33:21 Linux ngrok[14746]: update update ngrok to the latest version
May 28 01:33:21 Linux ngrok[14746]: version print the version string
May 28 01:33:21 Linux ngrok[14746]: help Shows a list of commands or help for one command
May 28 01:33:21 Linux ngrok[14746]: Incorrect Usage: flag provided but not defined: -domain
Please advise
Best regards