Sponsored Content
Full Discussion: Run application at startup
Top Forums Shell Programming and Scripting Run application at startup Post 302578736 by yodzaan on Friday 2nd of December 2011 08:05:28 AM
Old 12-02-2011
Run application at startup

We have a Windows Service written in C# ported over to linux using Mono Develop... The code is working 100% when we run a script file which runs the exe... but we want the application to run at startup.... The application gathers info of the computer eg. Hard Disk Space etc... And compress it into a .zip file and then calls a web service method to upload the data... Any ideas on how to get it running at startup?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Application can't startup?? Solaris and Linux RedHat

can someone tell me what could cause an application not to startup? I'm getting calls from users saying they cant' startup a particular application. how do I troubleshoot this? i tried doing ps -ef | grep (application) i saw the application running. now, am wondering, would it be safe to... (1 Reply)
Discussion started by: TRUEST
1 Replies

2. UNIX for Dummies Questions & Answers

Run tomcat at startup

Is it possible to run tomcat automatically when Linux boots without having to log in? (4 Replies)
Discussion started by: Spetnik
4 Replies

3. UNIX for Dummies Questions & Answers

how do i auto start application upon startup?

sorry, i'm a newbie to unix... but how do i or rather where do i write scripts that auto start my application e.g. Informix? in Windows it would be services but in UNIX where can i auto start my informix program? To run informix i just type "oninit". And do i have to login to any user before... (2 Replies)
Discussion started by: doofie
2 Replies

4. Linux

Run a script during reboot/startup

Hi all, i have a script in /etc/init.d directory. -rwxr-xr-x 1 root root 26 Mar 28 16:00 myscript I need it to run when my linux reboots/startup. However is it not being executed. Do i need to put in in the rc.local directory? (1 Reply)
Discussion started by: new2ss
1 Replies

5. AIX

run script at startup

I am using AIX 5.3 in P6 machine. I have a script "test.sh", when i run it manually it runs properly. I want to run the script automatically when system starts. I kept the script in /etc/rc.d/init.d and also in /etc/rc.d/rc2.d but it is not working. Do i have to write it in inittab instead of... (1 Reply)
Discussion started by: pchangba1
1 Replies

6. Shell Programming and Scripting

Need to run script at startup.

Hi guys , I Need to run a specific command (pinging a particular machine). Which need to run every time i reboot the server till the time it shut down. What is the preferred way of doing this. Will it impact my system performance. My Operating system is as below. # lsb_release -a... (3 Replies)
Discussion started by: pinga123
3 Replies

7. UNIX for Dummies Questions & Answers

run a script at startup

hi, i am using rhel 5, and i wanna run a script as soon as the operating system open. How can i do this ? ( i was reading rc.d files but i could not understand exactly what are the run levels and where should i put the my shell script. my script will be : #!/bin/ksh iptables -I INPUT... (1 Reply)
Discussion started by: futi
1 Replies

8. Shell Programming and Scripting

run a shellscript in background after startup

hi. i need to start a shellscript AFTER full system startup the script will then run permanently in a loop checking the server every minute and in case of major hangs it just reboots the machine. i put it into /etc/rc.local file like this: #!/bin/sh -e # # rc.local # # This script is... (4 Replies)
Discussion started by: scarfake
4 Replies

9. SuSE

Unable to Run a script at startup in suse

Hi I have a script myscript.sh that needs to be run whenever the server boots. The script is actually logging Syslog-ng messages to sql server. I need to lauch it at startup I have copied the script in etc/init.d i have also added the link ln -s /etc/init.d/syslog-ng-mssql-pipe.sh... (5 Replies)
Discussion started by: SystemEng
5 Replies

10. AIX

Run script with different user at the startup ..

Run script with different user at the startup .. I have created this user appuser And I have a script should to be up thru the startup by this user appuser I have defined the path of the script /user/appstart.sh in /etc/rc But at the startup starting will be by root , I’d like to keep... (6 Replies)
Discussion started by: Mr.AIX
6 Replies
Mono(Mono 1.0)															    Mono(Mono 1.0)

NAME
mono-service, mono-service2 - Mono ServiceProcess host SYNOPSIS
mono-service [options] program.exe DESCRIPTION
The mono-service is a host to run services built with the ServiceProcess assembly. Use mono-service to run services that use the 1.0 assemblies and use mono-service2 to run services that use the 2.0 assemblies. Services can be paused by sending the SIGUSR1 signal to the process, and execution can be resumed by sending the SIGUSR2 signal. The ser- vice can be cleanly shutdown by sending the SIGTERM signal to the process. Mono programs started with mono-service run with the MONO_DISABLE_SHM variable set. This means that certain Mono features that depend on it are not available to services. The following options can be used to control the service: -d:DIRECTORY Use this option to specify the working directory for the service. The default is the current directory. -l:LOCKFILE Specifies the file to use for locking, the default is a filename constructed in /tmp based on the name of the program that hosts the service. -m:MESSAGE Name to show in the syslog. -n:NAME Use this to specify the service to be launched (if the program contains more than one service). The default is to run the first defined service. --debug Use this option to prevent mono-service from redirecting stdin and stdout and prevent the program to be sent to the background. Equivalent to --no-daemon --no-daemon Use this option to prevent mono-service from redirecting stdin and stdout and prevent the program to be sent to the background. Equivalent to --debug. CONTROL
You can control the service by sending signals to the process, you can use the following commands: Pausing service: kill -USR1 `cat <lock file>` Resuming service: kill -USR2 `cat <lock file>` Stopping the service: kill `cat <lock file>` EXAMPLES
Start the MyService.exe assembly, with a lock in /root/service-lock: mono-service -l:/root/service-lock MyService.exe DEBUGGING
Messages produced by the service are logged on syslog. MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-list for details. WEB SITE
Visit: http://www.mono-project.com for details SEE ALSO
mono(1) N:System.ServiceProcess Mono(Mono 1.0)
All times are GMT -4. The time now is 11:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy