WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] new tcz submission with dbus question  (Read 3116 times)

aus9

  • Guest
[SOLVED] new tcz submission with dbus question
« on: January 26, 2013, 12:18:52 AM »
Hi

I have built and still testing spacefm which is a fork of a fork of pcmanfm

depends includes  dbus and udisks......main reason................automounting of remove-able media eg usb stick

With my real setup I have dbus already running but  have yet to create a tce.installed script for spacefm to take care of dbus

My Question
########

Would it be acceptable behaviour to just have the tce.installed script do this?

Quote
#!/bin/sh
/usr/local/etc/init.d/dbus restart

as I lack the skills to grep and awk (or what ever) to check status of dbus

2) dbus has an option of reload.......what does that do?

Thanks for reading
« Last Edit: January 26, 2013, 02:42:50 AM by aus9 »

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: new tcz submission with dbus question
« Reply #1 on: January 26, 2013, 12:34:16 AM »
If you use a l/unix system there is no excuse for not learning how to grep or awk.
dbus is rocket science compared to that.

You must read "The AWK programming language". It's a marvel of a technical book.
https://www.amazon.co.uk/The-AWK-Programming-Language-Alfred/dp/020107981X
« Last Edit: January 26, 2013, 12:39:01 AM by hiro »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: new tcz submission with dbus question
« Reply #2 on: January 26, 2013, 12:56:11 AM »
Quote
as I lack the skills to grep and awk (or what ever) to check status of dbus
check for the presence of /var/run/dbus/pid:
Code: [Select]
if [ ! -f /var/run/dbus/pid ]; then
/usr/local/etc/init.d/dbus restart
fi

Quote
2) dbus has an option of reload.......what does that do?
See:

http://forum.tinycorelinux.net/index.php/topic,13740.msg76710.html#msg76710
« Last Edit: January 26, 2013, 01:06:20 AM by Juanito »

aus9

  • Guest
Re: new tcz submission with dbus question
« Reply #3 on: January 26, 2013, 02:42:22 AM »
hiro

I guess you have never heard of the excuse " aus9 is an idiot"

seriously tho....I know I am idiot because sometimes I do not communicate as well as I thiink I am
---a valued member can testify to that but I am too ashamed to reveal more.

 :-[

Juanito

Thanks for taking the time to help me

 :)


Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: [SOLVED] new tcz submission with dbus question
« Reply #4 on: January 26, 2013, 06:08:59 AM »
I have indeed heard this excuse, and I don't accept it :P
The book is really easy to read, it's basically idiot-proof.
I try to be an idiot as often as possible, because I've seen if you're trying to be too clever in computing you end up nowhere.

aus9

  • Guest
Re: [SOLVED] new tcz submission with dbus question
« Reply #5 on: January 28, 2013, 11:25:49 PM »
notes to myself

As I will have udisks and dbus as dependencies, I can not assume the user knows to configure dbus, so I will be transparent, and warn the user in my info file

heck, keep it simple and let the user add the dbus startup by advice in info file
hiding only the update to icon cache in tce.installed
« Last Edit: January 29, 2013, 04:42:33 AM by aus9 »