I have a service configured with systemctl. This is the config file:
[Unit]
Description=eureka-server
After=syslog.target
[Service]
User=bhushanp
#User=root
ExecStart=/usr/bin/java -jar /home/bhushanp/apps/eureka_server.jar > /var/log/es.log 2>>&1
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
But its not writing logs to /var/log/es.log file.
Any help is appreciated.