Hi Dev2,
I am using Ubuntu 16.04 and trying to create the service daemon but not having success.
I currently have the following:
[Unit]
Description=Mattermost Push Proxy
[Service]
StartLimitInterval=200
StartLimitBurst=5
WorkingDirectory=/opt/mattermost-push-proxy
User=mattermost-push-proxy
ExecStart=/bin/mattermost-push-proxy
[Install]
WantedBy=multi-user.target
It fails to start with the following:
I can confirm that running this manually works:
2018/10/01 03:37:38 INFO Loading /opt/mattermost-push-proxy/config/mattermost-push-proxy.json
2018/10/01 03:37:38 INFO Push proxy server is initializing…
2018/10/01 03:37:38 INFO Initializing apple notification server for type=apple
2018/10/01 03:37:38 ERROR Apple push notifications not configured. Missing ApplePushCertPrivate. for type=apple
2018/10/01 03:37:38 INFO Initializing apple notification server for type=apple_rn
2018/10/01 03:37:38 ERROR Apple push notifications not configured. Missing ApplePushCertPrivate. for type=apple_rn
2018/10/01 03:37:38 INFO Initializing Android notificaiton server for type=android
2018/10/01 03:37:38 INFO Initializing Android notificaiton server for type=android_rn
2018/10/01 03:37:38 INFO Server is listening on :8066
I am only using Android for notifications, hence the warning about no apple keys found.