mbtiles-server icon indicating copy to clipboard operation
mbtiles-server copied to clipboard

How to run as a service in ubuntu

Open nageshkinge opened this issue 2 years ago • 1 comments

How to run as a service in ubuntu using systemctl. I created service file but starting service shows activating and then timeout occurs. What I am doing wrong?

[Unit] Description=Service tile server

[Service]
Type=notify
User=user1
ExecStart=mbtiles-server --cache /root/tileserver --verbose --port 3000
Restart=on-failure

[Install]
WantedBy=multi-user.target

nageshkinge avatar Mar 02 '23 05:03 nageshkinge

Found solution used pm2 to run it as service

nageshkinge avatar Mar 02 '23 06:03 nageshkinge