How to start and stop an "Automatic" process [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
I have an "automatic" mode process say "BPSAuto".
I need to keep thi process shut for certain time and later restart it.
I used bat file and sheduled the task to stop and start.
I used -->net start BPSAuto --- To start
And --> net stop BPSAuto --- To stop.
Now my problem is once I stop the process it again starts automatically. May be this is because it is in "Automatic" mode. Plesae help me to stop completely. And later restart.
Thanks in Advance...

sc config ServiceName start= <setting string>
note the space between start= and the setting for the service
Setting string can be one of:
boot
system
auto
demand
disabled
from sc config /?:
Modifies a service entry in the registry and Service Database.
SYNTAX:
sc config [service name] ...
CONFIG OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec|adapt>
start= <boot|system|auto|demand|disabled>
error= <normal|severe|critical|ignore>
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
DisplayName= <display name>
password= <password>

Related

Crontab and haproxy [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have a strange behavior which i do not understand:
I'm running haproxy as loadbalancer and security shield in front of other web containers.
The haproxy is running fine and uses my configured letsencrypt file.
So far so fine.
When the ssl certificate is running out, a new one including all needed key files is generated and replaces the key files.
After that, the haproxy must reload its config.
Now: when i call
cd /etc/haproxy
service haproxy reload
or the script itself from commandline, everything runs absolutely fine.
As soon as i call it via cron, it doesn't work!?!?
There is no error, and the reconfigure script is run till its end.
/etc/haproxy/bin/request_letsencrypt_certificate.sh:
#!/bin/bash
cd /etc/haproxy
service haproxy reload
crontab -e as root:
# LetsEnrcrypt | recert
* * * * * /etc/haproxy/bin/request_letsencrypt_certificate.sh
(i changed to run every minute for testing purposes)
When using echo test>run.txt the file is created every minute, so the script is started successfully, but the service command seems to be not executed?
What could be thy problem, why on commandline it works, but from cron not?
Both action are taken with root permissions as root itself (and when dumping the user in cron-call via whoami in the script, "root" is confirmed at runtime)
Does it work if you change service to /sbin/service to ensure that it's in the PATH? You also probably don't need cd /etc/haproxy in the script.

elasticsearch will not start: Seccomp is present, but bootstrap check fails (Centos 7 / ES 6.4.2) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
CentOS Linux release 7.5.1804 (Core)
Configuring a production cluster, and ES refuses to start:
1:33:56,454][INFO ][o.e.t.TransportService ] [node-68795-C] publish_address {192.168.200.162:9300}, bound_addresses {192.168.200.162:9300}
[2018-10-28T21:33:56,467][INFO ][o.e.b.BootstrapChecks ] [node-68795-C] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2018-10-28T21:33:56,494][ERROR][o.e.b.Bootstrap ] [node-68795-C] node validation exception
[1] bootstrap checks failed
[1]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
OK, so I go to check the presence of seccomp:
[$]# cat /boot/config-`uname -r` | grep CONFIG_SECCOMP=
CONFIG_SECCOMP=y
[$]# CONFIG_SECCOMP=y
So, looks and smells like seccomp is present.
What next?
The root cause: /tmp was mounted as noexec
It turns out that two or three bootstrap checks fail if /tmp is noexec.
Solve for /tmp, and all the other issues are resolved!

how do i add JVM custom properties file used by my that i used in full WAS 8.5.5 to websphere Liberty 8.5.5 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
In Full WebSphere Application server I have added a Custom properties file in APP Server > Server1 > Process Definition > Java Virtual Machine > custom properties > that points a configuration file on my windows system. I want to do the same for WebSphere Liberty, but cant seem to know where to put it or what the format would be. I tried jvm.options but not sure of syntax , that file requires to only use JVM arguments
For WebSphere Liberty you can place a jvm.options file in ${wlp.install.dir}/etc/jvm.options or ${server.config.dir}/jvm.options. Note that if both files are present, the jvm.options in ${server.config.dir} will be used.
Here is what a jvm.options file might look like:
# Set the maximum heap size to 1024m
-Xmx1024m
# Set a system property.
-DsomePropertyName=somePropertyValue
# Enable verbose garbage collection.
-verbose:gc
Note that the format for the property file is exactly the same as what you would pass into the java command normally. The main difference is that for jvm.options each property must be on it's own line.
The jvm.options shown above would be equivalent to launching a java process like this:
java -Xmx1024m -DsomePropertyName=somePropertyValue -verbose:gc
Reference: IBM Knowledge Center - Customizing the Liberty environment

Image upload funcationality not working on server [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
In my application i upload new war file that time previous images not shown in application
my java application i store image in database..
It sounds like in you hibernate configuration you have hbm2ddl.auto property set to create or create-drop.
When set to create hibernate will drop the current schema and create a new one on startup. when set to create-drop, hibernate will drop the schema at the time of shutdown. so all of your data will be lost.
Check this answer.
If this is the case then make it update. This will update the schema if you made any changes to model but otherwise everything will be as it is.
If this is not the case then you need to show the configuration and code or check log if you are seeing any exceptions.

Windows could not start DBConsole for new database instance [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am getting this error:
Windows could not start the OracleDBConsoleOracleInstance2 on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the system vendor, and refer to service-specific error code 1
I installed Oracle 11g on Windows 7 and created my 1st database instance (oracleInstance1) successfully with a listener and service configured. I could access this database using DBconsole URL: https://localhost:1158/em.
I see the services started for:
OracleDBConsoleOracleInstance1
OracleOraDb11g_home1TNSListener
OracleServiceOracleInstance1
Next, I created a second database instance (oracleInstance2) and have configured a new service for this database. I am using the same listener as I intend to use one database instance at any point of time.
However, I got this warning message during configuration:
Enterprise manager configuration succeeded with the following warning - Error starting Database Control. Please execute the following command(s).
1. Set the environment variable ORACLE_UNQNAME to Database unique name.
2. C:\Oracle\product\11.2.0\dbhome_1\bin\emctl.bat start dbconsole
To start the new database console, I stopped the previously running DBConsole, OracleDBConsoleOracle1 and started the new DBConsole OracleDBConsoleOracle2 and get the above error.
When I try to start dbconsole manually using emctl dbconsole start, it starts OracleDBConsoleOracle1 instead.
I changed environment variables ORACLE_SID=oracle2 and ORACLE_UNQNAME=oracle2
What am I missing here?
Are you sure your env vars are applied correctly? If you set them in a DOS window then they'll only be visible there, you need to set them in the windows 'environment variables' screen.

Resources