# tambahan
OLDPWD=$(pwd)
cd /opt/[direktory]
function atexit() { cd "$OLDPWD"; }
trap atexit EXIT # go back to where we came from, however we exit
# end of tambahan
# tambahan
OLDPWD=$(pwd)
cd /opt/[direktory]
function atexit() { cd "$OLDPWD"; }
trap atexit EXIT # go back to where we came from, however we exit
# end of tambahan
[Unit]
Description=Description for sample script goes here
After=local-fs.target
[Service]
Type=simple
ExecStart=/opt/idempiere-server/idempiere-server.sh
TimeoutStartSec=0
[Install]
WantedBy=default.target
--ctrl X to exit and choose save Y
--lalu
systemctl daemon-reload
systemctl enable idempiere.service
systemctl start idempiere.service
systemctl reboot
--coba
selesai