LinuxSay - A Discussion Forum for Linux Enthusiasts

Need a help Unitd Services in ubuntu system


#1

Hi,
I have created unitd services in ubuntu 16 and installed. AFter that i changed ROOT url to domainname but its shows previsous url only

[Unit]\nDescription=The Test.Chat server\nAfter=network.target remote-fs.target nss-lookup.target nginx.target mongod.target\n[Service]\nExecStart=/usr/local/bin/node /opt/Test.Chat/main.js\nStandardOutput=syslog\nStandardError=syslog\nSyslogIdentifier=rocketchat\nUser=rocketchat\nEnvironment=MONGO_URL=mongodb://localhost:27017/rocketchat ROOT_URL=http://your-host-name.com-as-accessed-from-internet:3000/ PORT=3000\n[Install]\nWantedBy=multi-user.target" | sudo tee /lib/systemd/system/Test.service

1)By default am gave root url is my ip:3000. in web console it not working
2)I will change root url to domain name. here domain name and hot name are same. i also edi hosts file also

KINDLY syggest with me