Showing posts with label autostart. Show all posts
Showing posts with label autostart. Show all posts

Tuesday, December 15, 2020

Merubah directory dalam script

 # 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  


Wednesday, October 3, 2018

Auto run idempiere / autostart idempiere

nano /etc/systemd/system/idempiere.service

--copy pastekan ini:
[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