Sidebar

Where do i put the QIE startup parameters on linux?

0 votes
415 views
asked Jan 21, 2022 by jake-b-8126 (200 points)
Where do i put the startup parameters to connect to a database on an install of QIE running on Ubuntu?

1 Answer

+1 vote
 
Best answer

Where you put the parameters depends on if your Linux system is using systemd or the older upstart.  

Here are the instructions for each type of system.  In short, for systemd-based systems, you would add your arguments into the '/etc/systemd/system/qie.service' file.  For older upstart-based systems, you would add them to '/java/qie/start.sh'.

================================================================
To install on Linux (Using systemd on Ubuntu 16.04 or later):
================================================================
1. extract zip to '/java/qie'
2. copy '/java/qie/linux_install/qie.systemd.service.dist' to '/etc/systemd/system/qie.service'
3. grant permissions 'chmod 777 /etc/systemd/system/qie.service' (rwxrwxrwx)
4. review '/etc/systemd/system/qie.service' for more details on java options and java arguments
5. create link from service to qie home 'ln -s /etc/systemd/system/qie.service /java/qie/qie.service'
   - this makes it easier to find the service definition file if you need to configure QIE startup options
6. register service 'systemctl daemon-reload'
7. enable service so that it starts on boot 'systemctl enable qie'
   - to disable the auto start of the service run 'systemctl disable qie'
8. execute 'mkdir /java/qie/logs/' to ensure that the log folder exists

To Start and Stop QIE from command prompt on Linux:
1. To start: 'sudo systemctl start qie'
2. To stop: 'sudo systemctl stop qie'


================================================================
To install on Linux (Using upstart on Ubuntu 14.04 or earlier):
================================================================
1. extract zip to '/java/qie'
2. copy '/java/qie/linux_install/start.upstart.sh.dist' to '/java/qie/start.sh'
3. grant permissions 'chmod 755 /java/qie/start.sh' (rwxr-xr-x)
4. review '/java/qie/start.sh' for more details on java options and java arguments
5. copy '/java/qie/linux_install/qie.upstart.conf' to '/etc/init/qie.conf' (on Ubuntu 8.04 copy to '/etc/event.d/' and rename to 'qie', since it is using an older version of upstart)

To Start and Stop QIE from command prompt on Linux:
1. To start: 'sudo start qie'
2. To stop: 'sudo stop qie'

answered Jan 21, 2022 by jon-t-7005 (7,590 points)
selected Jan 21, 2022 by jake-b-8126
...