[SOLVED] How can i control the same app in two servers?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers [SOLVED] How can i control the same app in two servers?
# 8  
Old 09-07-2012
The lockfile's sheer existence is the indicator that the app is running. You can leave it empty, or you can put some info about the running instance of your app into it like PID, start time, user, server it runs on, so it can be used for other administrative tasks as well. You have to make sure it disappears once the app stops, even if it is, say, aborted or terminated by a signal.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

Wuhan Coronavirus Status App for China - Rapid Prototype using MQTT and the IoT OnOff IOS App

With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here: ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages The result turned out nice, I think. I like the look and... (10 Replies)
Discussion started by: Neo
10 Replies

2. UNIX for Dummies Questions & Answers

[Solved] Removing control-m characters from shell script

Hi All, I need to remove control m character from a file. Steps which i am doing in shell script are: 1) We are comparing the header of the file to the database table header Here the file header has control-m characters. How do i remove it. Please help. Below are the steps i am using,... (12 Replies)
Discussion started by: abhi_123
12 Replies

3. Solaris

Problem with /app

Hi folks, i have a problem with my /app directory on solaris 10.It is mounted under rpool root and sometimes it increase dimension bringing root out of space.I want to mount /app under different position, maybe under secondary hardisk for which i have created a mount point with zfs pool...How... (10 Replies)
Discussion started by: mattpunk
10 Replies

4. Emergency UNIX and Linux Support

[Solved] DCMU (disk control and monitor utility) sun fire

Hi , during 2 weeks i´ve been trying to find them. i need DCMU packets for managing internal disks on sun fire x4500 and sun fire x4600 on rhel. i have opened to tickets to myoraclesupport but no answer. please anybody could tell me a link or anythiing?? i´ve been searching and searching... (1 Reply)
Discussion started by: pabloli150
1 Replies

5. Shell Programming and Scripting

[solved] merging two files and writing to another file- solved

i have two files as file1: 1 2 3 file2: a b c and the output should be: file3: 1~a 2~b 3~c (1 Reply)
Discussion started by: mlpathir
1 Replies

6. Red Hat

userid with nothing to do on the os/app

Hi All, I got this userid apache with the same userid and groupid and /sbin/nologin and the /www/a home folder is empty. Can I just delete this userid? How can I investigate if userid have something to do with the application? Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

7. Solaris

luminis app

The guys at SunGard want to charge a lot of $$$$ for installing Luminis and we are trying to see if this can be done without them. Their installation guide provided page #53 ( http://www.luminis.nocccd.edu/documents/Luminis%20IV/lp40000in.pdf ) doesn't really tell you much. All they say is that... (4 Replies)
Discussion started by: ceci1
4 Replies

8. Programming

Deadlocked App

Hello All - We have a legacy C program running non stop on one of our servers, with several instances often running at once. Fairly regularly, one of the instances while stop outputting to the log file and will just deadlock/hang. They must be then 'kill'ed by myself. When I gdb into one of... (3 Replies)
Discussion started by: markanderson
3 Replies
Login or Register to Ask a Question
Gnome2::App(3pm)					User Contributed Perl Documentation					  Gnome2::App(3pm)

NAME
Gnome2::App - wrapper for GnomeApp HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Bin +----Gtk2::Window +----Gnome2::App INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable METHODS
widget = Gnome2::App->new ($appname, $title=undef) o $appname (string) o $title (string) scalar = $app->accel_group $app->add_dock_item ($item, $placement, $band_num, $band_position, $offset) o $item (Gnome2::Bonobo::DockItem) o $placement (Gnome2::Bonobo::DockPlacement) o $band_num (integer) o $band_position (integer) o $offset (integer) widget = $app->add_docked ($widget, $name, $behavior, $placement, $band_num, $band_position, $offset) o $widget (Gtk2::Widget) o $name (string) o $behavior (Gnome2::Bonobo::DockItemBehavior) o $placement (Gnome2::Bonobo::DockPlacement) o $band_num (integer) o $band_position (integer) o $offset (integer) $app->add_toolbar ($toolbar, $name, $behavior, $placement, $band_num, $band_position, $offset) o $toolbar (Gtk2::Toolbar) o $name (string) o $behavior (Gnome2::Bonobo::DockItemBehavior) o $placement (Gnome2::Bonobo::DockPlacement) o $band_num (integer) o $band_position (integer) o $offset (integer) scalar = $app->contents $app->set_contents ($contents) o $contents (Gtk2::Widget) $app->create_menus ($uiinfo) o $uiinfo (Gnome2::UIInfo) $app->create_toolbar ($uiinfo) o $uiinfo (Gnome2::UIInfo) scalar = $app->dock dock = $app->get_dock dockitem = $app->get_dock_item_by_name ($name) o $name (string) $app->enable_layout_config ($enable) o $enable (boolean) scalar = $app->get_enable_layout_config $app->insert_menus ($path, $menuinfo) o $path (string) o $menuinfo (Gnome2::UIInfo) $app->install_menu_hints ($uiinfo) o $uiinfo (Gnome2::UIInfo) scalar = $app->layout scalar = $app->menubar $app->set_menus ($menubar) o $menubar (Gtk2::MenuBar) scalar = $app->prefix $app->remove_menu_range ($path, $start, $items) o $path (string) o $start (integer) o $items (integer) $app->remove_menus ($path, $items) o $path (string) o $items (integer) Gnome2::App->setup_toolbar ($toolbar, $dock_item) o $toolbar (Gtk2::Toolbar) o $dock_item (Gnome2::Bonobo::DockItem) scalar = $app->statusbar $app->set_statusbar_custom ($container, $statusbar) o $container (Gtk2::Widget) o $statusbar (Gtk2::Widget) $app->set_statusbar ($statusbar) o $statusbar (Gtk2::Widget) $app->set_toolbar ($toolbar) o $toolbar (Gtk2::Toolbar) scalar = $app->vbox PROPERTIES
'app-id' (string : default undef : readable / writable / construct) The application ID string ENUMS AND FLAGS
flags Gnome2::Bonobo::DockItemBehavior o 'normal' / 'BONOBO_DOCK_ITEM_BEH_NORMAL' o 'exclusive' / 'BONOBO_DOCK_ITEM_BEH_EXCLUSIVE' o 'never-floating' / 'BONOBO_DOCK_ITEM_BEH_NEVER_FLOATING' o 'never-vertical' / 'BONOBO_DOCK_ITEM_BEH_NEVER_VERTICAL' o 'never-horizontal' / 'BONOBO_DOCK_ITEM_BEH_NEVER_HORIZONTAL' o 'locked' / 'BONOBO_DOCK_ITEM_BEH_LOCKED' enum Gnome2::Bonobo::DockPlacement o 'top' / 'BONOBO_DOCK_TOP' o 'right' / 'BONOBO_DOCK_RIGHT' o 'bottom' / 'BONOBO_DOCK_BOTTOM' o 'left' / 'BONOBO_DOCK_LEFT' o 'floating' / 'BONOBO_DOCK_FLOATING' SEE ALSO
Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Window COPYRIGHT
Copyright (C) 2003-2004 by the gtk2-perl team. This software is licensed under the LGPL. See Gnome2 for a full notice. perl v5.14.2 2011-11-16 Gnome2::App(3pm)