Hogy is kell, gentoo alatt glassfish szervert indító scriptet csinálni. Álljon alább a példa:
Létrehozunk egy file-t /usr/local/bin/gf_start tartalma:
#!/bin/bash /opt/glassfish/glassfish3/bin/asadmin start-domain
Kell egy stop is: /usr/local/bin/gf_stop tartalma:
#!/bin/bash /opt/glassfish/glassfish3/bin/asadmin stop-domain
És maga az indító script /etc/init.d/glassfish aminek a tartalma:
#!/sbin/runscript depend() { need net } start() { ebegin "Starting glassfish" # Ensure that we run from a readable working dir, and that we do not # lock filesystems when being run from such a location. cd / start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/glassfish.pid --exec /usr/local/bin/gf_start eend $? } stop() { ebegin "Stopping glassfish" /usr/local/bin/gf_stop eend $? } restart() { if ! service_stopped "NULL" ; then svc_stop || return "$?" fi svc_start }
First, create a Samba share on the easiest way. For example, mine: [macbook-pro-14] path =…
I use this and I experiened like this: The branch name is shortened and can't…
I really like IDEA for developing. I worked on a golang project and I organised…
For reusage: docker run -d \-p 8200:8200 \--restart=on-failure:3 \--name minidlna \-v /opt/minidlna/cache:/minidlna/cache \-v /mnt/data/series:/media/series \-v…
On my host the ipv6 is disabled. I had to start a docker image, which…
I have a Conbee II Zigbee receiver. After a restart the USB passthrought stopped working…
This website uses cookies.