How to write an upstart event.d script

this one to suit the setting of having in /etc/inittab at
the version of previous inittab in fc8

vp:345:respawn:/usr/sbin/vtund -n -f /etc/vtund-pcnamranhq.conf pcnamran-hqsatellite 66.249.93.104

but for fc9 .. it is now using upstart.. the same thing that had been used by ubuntu 8.04 / 8.10 ..

so need to create a new one at /etc/event.d/vpn2hqsatellite

YMMV.

# vpn2hqsatellite - vtund
#
# This service maintains a vtund client from the point the system is
# started until it is shut down again.
description     "vtund client daemon"
author          "Namran Hussin namran at namran dot net"
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on runlevel 0
stop on runlevel 1
stop on runlevel 6
respawn
exec /usr/sbin/vtund -n -f  /etc/vtund-pcnamranhq.conf pcnamran-hqsatellite 66.249.93.104

to test.. start it with..

initctl start vpn2hqsatellite

kinda weird.. as before we just use

kill -HUP 1

but nevermind as long as it working then fine..

initctl status vpn2hqsatellite

easy .. huh?
vpn2hq2.png

btw : ‘encrypt yes;’ on vtund-3.0.1 can’t connect to server vtund-1.0.8 with ‘encrypt yes;’ option.
as default for 1.0.8 encrypt is just blowfish. but for 3.0.1 is default method is ‘blowfish128ecb’.

and this wordpress plugin code can’t process a line with white-space as part of the code..

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

8 Responses

  1. HawkEYE says:

    uploaded the google gadget for linux(CentOS 5.2) binary only to

    http://my.namran.net/repository/gg-binary.tgz

    Reply
  2. HawkEYE says:

    uploaded the google gadget for linux(CentOS 5.2) binary only to

    http://my.namran.net/repository/gg-binary.tgz

    Reply
  3. HawkEYE says:

    for ease of use .. add a launcher at desktop
    with this parameter at command box.

    /usr/local/bin/ggl-gtk >/dev/null > 2&1

    select the icon .. and fill in the description..

    done.

    click and google gadget will appear.

    Reply
  4. HawkEYE says:

    for ease of use .. add a launcher at desktop
    with this parameter at command box.

    /usr/local/bin/ggl-gtk >/dev/null > 2&1

    select the icon .. and fill in the description..

    done.

    click and google gadget will appear.

    Reply
  5. shibu073 says:

    using the gg-binary tar file .I am not able to install google gadgets in centos 5.2. when i run the command “ggl-gtk “it gives error as

    Not a regular file: /
    ggl-gtk: symbol lookup error: ggl-gtk: undefined symbol: _ZN7ggadget7SideBar26ConnectOnGoogleIconClickedEPNS_5Slot0IvEE
    You have new mail in /var/spool/mail/root

    Reply
  6. shibu073 says:

    using the gg-binary tar file .I am not able to install google gadgets in centos 5.2. when i run the command “ggl-gtk “it gives error as

    Not a regular file: /
    ggl-gtk: symbol lookup error: ggl-gtk: undefined symbol: _ZN7ggadget7SideBar26ConnectOnGoogleIconClickedEPNS_5Slot0IvEE
    You have new mail in /var/spool/mail/root

    Reply
  7. HawkEYE says:

    i think it is because the different version of the underneath library ..
    as per
    http://code.google.com/p/google-gadgets-for-linux/issues/detail?id=266

    better rebuild the package from the source again following above instruction..

    binary tend to be useless anyway.. ;-(

    Reply
  8. HawkEYE says:

    i think it is because the different version of the underneath library ..
    as per
    http://code.google.com/p/google-gadgets-for-linux/issues/detail?id=266

    better rebuild the package from the source again following above instruction..

    binary tend to be useless anyway.. ;-(

    Reply

Anything to add?

X