Interesting, I just now spun up a instance of Ubuntu 16.04 LTS on DO and ran it, it works fine?
./flarum_management -if ipaddr
As for The 'sudo service nginx restart' returns nothing.
- it's not supposed to.
It kills the current nginx and starts it anew. You can see this with ps -fC nginx
user@ubuntu-1gb-sfo2-01:~$ ps -fC nginx
UID PID PPID C STIME TTY TIME CMD
root 13958 1 0 14:00 ? 00:00:00 nginx: master process /usr/sbin/
www-data 13959 13958 0 14:00 ? 00:00:00 nginx: worker process
user@ubuntu-1gb-sfo2-01:~$ sudo service nginx restart
user@ubuntu-1gb-sfo2-01:~$ ps -fC nginx
UID PID PPID C STIME TTY TIME CMD
root 13980 1 0 14:00 ? 00:00:00 nginx: master process /usr/sbin/
www-data 13981 13980 0 14:00 ? 00:00:00 nginx: worker process
After running, the kernel killed the master and worker (13958 and 13959) and started new ones assigned to 13980 and 13981.
In any case, you are free to:
By doing either of the above, we will be able to keep this thread on topic ?