General :: Screen Start / Stop Script With Name?

Sep 24, 2010

I use a centos VPS with 1gb memory and enough space and brandwidth (if this info is off any use). What I want to achieve is that I can start and quit a process that is running in a screen, with using a script.

Like start.sh that does "screen serverapp1"
and stop.sh that does "kill serverapp1"

I already tried something like that, but it didn't work. The kill command only works with process ID's and that one is variable.

View 8 Replies


ADVERTISEMENT

General :: Screen Start / Stop Script With A Name?

Sep 24, 2010

What I want to achieve is that I can start and quit a process that is running in a screen, with using a script.

Like start.sh that does "screen serverapp1 ./serverapp1"
and stop.sh that does "kill serverapp1"

I already tried something like that, but it didnt work. The kill command only works with process ID's and that one is variable.

EDIT:
What I've tried (because google is my friend):

[servercod4001@datacenter-196 ~]$ screen -ls
There is a screen on:
11343.servercod4001 (Detached)
1 Socket in /var/run/screen/S-servercod4001.

[Code]....

View 3 Replies View Related

General :: Start Script Bash When System Start Stop Reeboot?

Dec 10, 2009

I have 3 script BASH. I want start this script when the system start,stop and reeboot.

View 4 Replies View Related

General :: How To Start And Stop XWindows Without Rebooting

Feb 10, 2011

Sometimes I use vnc server and start desktop. The memory use rises about 2gb during this. I need to be able to turn off the xwindows after I shutdown vnc without rebooting. Is there a way to do this?. And I don't need to know how to disable at boot thats not what I need to do.

View 5 Replies View Related

Fedora Security :: User Access To Start And Stop Tomcat But Also Gives User Access To Start And Stop Other Services "/etc/sudoers"

Mar 13, 2009

I am trying to give access to ONE single user to start and shutdown tomcat server. The problem being, when I enter syntax: username ALL= /etc/init.d/tomcat5, /usr/local/tomcat/webapps, PASSWD:ALL This gives the user access to start and stop tomcat but also gives user access to start and stop other services within /etc/init.d - such as httpd etc... What is the proper way to give user access to start and stop service, and limiting that power to only one service....

View 2 Replies View Related

General :: PostgreSQL Service Failed To Start Or Stop

Jan 6, 2010

I am using RHEL 5.0. I am having problem with postgresql service it is not starting, not stopping, not restarting.

View 5 Replies View Related

General :: Start / Stop Apache - HTTPD Not Running

Aug 25, 2010

I configure my apache and can run http://localhost. There "I see it works!" but if I try to stop apache I get message that httpd is not started. I run

apachectl start - ok
but when I run apachectl stop it says "httpd (no pid file) not running"

I need to stop apache, because this is my dev machine and I want to start apache only when I make changes to my site. I am with slackware13.

View 4 Replies View Related

General :: Start/stop Recording Automatically When There Is Someone Starts Talking?

Dec 24, 2010

I want to start recording when someone starts talking, and stop recording when it becomes silent. I guess if there is stream audio processing tool like ImageMagick, so I can strip away blank sections like this:

$ rec -t wav - | wavefilter -strip-blank=3sec | lame - >record1.mp3

EDIT This question is resolved by using:

$ rec -t wav - silence 1 0.1 3% -1 1.0 3% | lame - >record1.mp3

View 1 Replies View Related

General :: Screen Goes Black And Install Disc Stop Running

Feb 26, 2011

I am new to Linux but wanted to try it. I downloaded Ubuntu and burned the ISO to disc, I restarted my PC and the disc runs and seems to be loading, a purple screen appears with a small icon at the bottom, then the screen turns black and that is all, disc stops running and nothing else, am i doing something wrong here?

View 2 Replies View Related

General :: Stop Song On The Laptop - Start Playing Same Song On The PC?

Sep 24, 2010

I'm looking for some pointers on a method to "transfer" the song-playing from my laptop to my PC, both running ubuntu. The use case is: I'm home listening to some song on the laptop. Then I realize how crappy the speakers are. Here's what I do *now*:

1. Stop playback on the laptop
2. Get up, go to the PC, open the music player
3. Find the same song
4. Try to find the same point in the song
5. Stop playback on the laptop
6. Start playback on the PC (the PC has good speakers)

Of course now I'm dreaming of having a "button" I push that does all this all by itself. Can anyone give me some pointers?

View 6 Replies View Related

Red Hat :: Informix Start - Stop Along

Mar 4, 2009

I'm trying to start/stop Informix along with my linux os start/stop. For this I've made a test script in order to test this but I'm facing a problem. The service is starting along with the system but when I'm stopping (rebooting) the system it doesn't run the "K10test" script.

After sistem reboot you can see that the /etc/init.d/test stop is not executed.

View 11 Replies View Related

CentOS 5 Server :: Named Won't Start \ Named Stop But Does Not Start Again?

Oct 28, 2009

i've made a big update of almost 300Mb.I'had a working DNS server.Now, when i boot the box, named works and it resolves all the clients.If i make any change (enter a new client for example) and of course i restart named (service named restart), named stop but does not start again !!!In order to get a working named, i 'm obliged to reboot the box?

View 6 Replies View Related

General :: Goes To The Start Of The Command In Screen

Jul 30, 2011

After running a command that spits out a lot of output in screen. I drop to Copy mode and try to find where the command start. This becomes very very challenging when there are lots of lots of similar text to sift through. Is there a way for me to quickly scroll to where my command starts?

View 2 Replies View Related

OpenSUSE :: Stop Kmail On Start Up?

Mar 7, 2010

I set Kmail to launch on start up but now no longer wish for it to do so. However, i cannot find the setting i changed in the first place.

View 4 Replies View Related

Ubuntu :: USB Transfers Stop / Start In 10.04

May 30, 2010

When copying files to USB drives, the file progress bar moves it 'bursts', sometimes doing nothing for long periods, then moving forward quickly and stopping again.It's almost like it is showing the transfer to the cache, not the transfer to the actual drive.

View 5 Replies View Related

Ubuntu :: How To Stop KVM Start At Boot

Mar 10, 2010

Host - ubuntu 9.10 64bit
Virtualizer - KVM

I need to stop KVM starting at boot. I added following 2 lines at the bottom of /etc/modprobe.d/blacklist.conf
Code: blacklist kvm
blacklist kvm-amd Reboot PC
It doesn't work.

$ lsmod | grep kvm Code: kvm_amd 41556 0
kvm 190648 1 kvm_amd
What further command I have to run in order to activate the new blacklist.conf ?

View 2 Replies View Related

General :: Cannot Boot Linux At Start Screen

May 7, 2010

i have downloaded linux mint 8 and burnt it to disc ive been trying for what seems like for ever to load it but cant find out how to! im using a laptop with windows xp, and an external hard drive so cannot boot linux at start screen can anyone help me do it please.

View 2 Replies View Related

General :: Start Gcalctool In The Center Of The Screen?

Oct 15, 2010

Is there any parameter for this? For exampleCode:gnome-terminal --maximizestarts Terminal fullscreen. I want to start calc in the screen's center so I won't need to search it on the display every time I run it. It'a annoying.

View 2 Replies View Related

General :: How To Start And Pause Screen Recorder

Jul 13, 2011

i recently installed recordmydesktop when i prompt to start its fine but i can find only record button no stop button.even if i kill the process and check the file its in (.something) format. is there any shortcut buttons for the start,stop if it is wat ll be the output format. or should i go for other good screen recorder is available.

View 3 Replies View Related

Debian :: Unable To Start / Stop Lightdm

Apr 4, 2016

I'm running Debian 8.4 on a Lenovo W500 laptop and I recently upgraded from kernel version 3.2.0-4 to 3.16.0-4. Since then I encounter issues with lightdm (I suppose) which manifest themselves in two different scenarios:

1) scenario 1: lightdm fails to start.Instead of showing the graphical login screen, the system boots into terminal. Lightdm seems to be running, but I can't enter the X-Session (Alt+Ctrl+F7 doesn't work), nor can I restart the lightdm via

Code: Select all# service lightdm stop
# service lightdm start

dmesg shows the following (I've only pasted the end of dmesg):
Code: Select all[  240.100071] INFO: task kworker/0:2:39 blocked for more than 120 seconds.
[  240.106512]       Not tainted 3.16.0-4-amd64 #1
[  240.112956] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  240.119494] kworker/0:2     D ffff880155155a48     0    39      2 0x00000000

[code].....

and /var/log/lightdm/lightdm.log shows errors of type
Code: Select allGtk-CRITICAL: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed

when I then try to shutdown via
Code: Select all# shutdown -h now

the OS gets stuck on a message of the form
Code: Select allirq 17: nobody cared

and eventually I have to force a shutdown by holding the poweroff button.scenario 2: lightdm starts, but can't be stopped/In this case I can login and use the system as usual, but when I try to shutdown either via # shutdown -h now, or via the GUI or the power button, the system gets stuck and I have to force a shutdown by holding the poweroff button.It seems that people had similar issues on other distros (see e.g.: URL... but there doesn't seem to be a good fix so far. I can for now solve the issue by downgrading the kernel to 3.2.0-4, but I was wondering if there is a permanent fix.

View 6 Replies View Related

Debian Multimedia :: Start And Stop Xfce When Want?

Aug 24, 2011

I am trying to make a web server with debian 6 and i want a xfce dsektop when i need to open files,extract,navigate but to be able to turn it off when i dont need it (to save ressources).I already installed it with aptitude install xorg and aptitude install xfce.

View 4 Replies View Related

Fedora Servers :: How To Stop KVM Start At Booting

Feb 25, 2010

Fedora 12 64bit KVM

How to stop KVM start at booting?

Then how to start it after booting?

View 4 Replies View Related

OpenSUSE :: How To Start Stop Mysql Server

Feb 25, 2010

i am using putty to connect to my server and wanted to restart mysql server. searched the internet and found thatcommand is /etc/init.d/mysqld start or stopbut it did not worked.then tried /etc/init.d/mysql stop or startthis also did not worked.

View 6 Replies View Related

Ubuntu :: Can't Find App To Stop And Start Services

Jun 27, 2010

I thought it was in the System>administration menu somewhere, but I just can't see it. What is it called, and where do I find it please?

View 9 Replies View Related

Red Hat / Fedora :: Services Start Then Stop After Few Minutes

May 7, 2009

I have several services set to start in init 3 on a cloud provider. The init scripts appear to be in the correct folder but the services are never started after a reboot. I finally watched the console and all the services start correctly then shutdown after a few moments.

View 9 Replies View Related

Red Hat / Fedora :: How To Start Or Stop Telnet Service

Feb 1, 2010

How to start or stop telnet service in red hat Linux 5

View 2 Replies View Related

Ubuntu :: Keyboard Start To Stop Working

Jul 25, 2010

i installed linux ubuntu 10.04 successfully.it only works for a few minutes then the mouse and the keyboard start to stop working, they completely freeze then i have to restart the computer.

View 1 Replies View Related

Fedora :: Start And Stop Script With Screensaver

May 26, 2009

I would like to start and stop rtorrent based on my screensaver. I used to do this awhile ago with ubuntu and still have my script. However now I am using Fedora with KDE and the script no longer seems to work.

#!/usr/bin/perl
#gnome
my $cmd = "dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver',member='SessionIdleChanged'"";
open (IN, "$cmd |");
while (<IN>) {
if (m/^s+boolean true/) {
#when screensaver activates, run the following commands
#system("/home/eric/compiled/scripts/rtorrentstart");
system("touch /home/asoukenka/rtorrenthasstarted");
} elsif (m/^s+boolean false/) {
#when screensaver deactivates, run the following commands
#system("kill `pgrep rtorrent`");
system("touch /home/asoukenka/rtorrenthasbeenkilled"); } }
Old Post [URL].

View 6 Replies View Related

Networking :: Start And Stop Squid Service?

Feb 9, 2011

I have installed squid 2.7 in my red hat Linux box.I need some guidance regarding to start and stop squid service. Normally when squid configuration file is n /etc/squid/squid.conf and we want to start the service we use # service squid startand to stop the service we use# service squid stopNow squid is inCode:# /usr/local/squid/etc/squid.confhere the default # service squid start and # service squid stop does not work.

View 6 Replies View Related

Networking :: How To Stop / Start Network In Ubuntu 10.04

Jul 18, 2010

This should not be this difficult. I have a plain install of Ubuntu 10.04 64 bit with a wired network card. It picks up a private IP address from my router. It has an app called NetworkManager Applet 0.8 in the notification area of the panel. If I right click on this app and select "Disconnect" it does. ifconfig shows that the IP address is gone. I can then right click on the app again and "Auto eht0 and I am connected again and ifconfig shows the IP address restored. So far, so good. I was testing a crossover cable to see how fast I could transfer files to/from my server - both machines have gigabit cards but my switch is only 100 Mb.

I unplugged the PC from the router, hooked up the crossover cable to the server and found that I had no connectivity - the IP address was gone. Not wanting to mess with hard configuring IP addresses for the moment I connected the PC back to the router. When I unplugged the cable the app showed the networking disconnected icon. I tried right clicking on the app and unchecking [ ] Enable Networking then rechecking it. This works on my netbook running Ubuntu 9.04. No luck on 10.04 (and I had not tried the Auto eht0 as described above - did not discover that until later). So then I tried to fix it from the command line.

ken@taylor12:~$ sudo /etc/init.d/networking start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service networking start

Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start(8) utility, e.g.
start networking
networking stop/waiting.

So I then tried
ken@taylor12:~$ sudo service networking start
networking stop/waiting
but still no connectivity. A reboot got things back in order.

Then I did a little more testing.
ken@taylor12:~$ sudo /etc/init.d/networking stop
* Deconfiguring network interfaces...
Ignoring unknown interface eth0=eth0.
and I am still connected.

Editing Connections within the NetworkManager Applet shows "Auto eth0 - last used never" even though I have used it. [Edit] Auto eth0 via the app appears to show information about my wired NIC.

ifconfig shows eht0 as active
ken@taylor12:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:25:64:e8:18:2c
inet addr:192.168.0.112 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::225:64ff:fee8:182c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2234 errors:0 dropped:0 overruns:0 frame:0
TX packets:2407 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
bytes:1824427 (1.8 MB) TX bytes:404086 (404.0 KB)
Interrupt:17

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved