Personal Proxy signalen

Pagina: 1
Acties:

  • GarBaGe
  • Registratie: December 1999
  • Laatst online: 14:56
Ik weet dat er al veel topics zijn geweest over personal proxy instellingen enzo, maar dit is nog niet geweest:

Onder Linux kan je je personal proxy (zonder terminal) verschillende signalen sturen voor verschillende opdrachten.
Namelijk:
KILL -> afsluiten
HUP -> ini file opnieuw inlezen
ALRM -> forceer fetch en flush.

KILL geef je door "kill pproxyid"
ALRM geef je door "kill -14 pproxyid"

Maar hoe geef ik een HUP signaal :?

Ryzen9 5900X; 16GB DDR4-3200 ; RTX-4080S ; 7TB SSD


Verwijderd

een echte Unix systeem kan : kill -HUP proxyper
aan. maarja Linux moet vast nog volwassen worden.

HUP == 1

er staat bij een unix systeem een file : /usr/include/sys/signal.h
en daar staan ze allemaal in. deze heeft Linux ook vast.

  • GarBaGe
  • Registratie: December 1999
  • Laatst online: 14:56
Vaag. In de signal.h staan alleen maar (voor mij) onbegrijpelijke dingen.

Maar "kill -HUP" werkt wel :)
Thanx

BTW, volgens de man-pages van kill, worden de volgende signalen ondersteunt:
-1 :broadcast
0 : ?
2 : INT, interrupt
3 : QUIT
6 : ABRT, abort
9 : KILL (non-catchable, non-ignorable)
14: ALRM (alarm clock)
15: TERM (software termination signal)

Daar staat geen "HUP" bij. Maar het werkt wel... :?

Anyway, thanx! het werkt!

Ryzen9 5900X; 16GB DDR4-3200 ; RTX-4080S ; 7TB SSD


  • Dutchman!
  • Registratie: Januari 2000
  • Laatst online: 22-05 17:04
misschien dat je hier wat aan hebt.
OPERATIONS AND SIGNALS
----------------------
On UNIX, sending a TERM or INT signal will cause the personal proxy to
shut down nicely, resaving all keyblocks that are still in memory to
disk, and closing all open network connections.

On UNIX, sending a HUP signal will cause the personal proxy to reload
its ini configuration file and reread most of the settings specified
within it.

On UNIX, sending an ALRM signal will trigger the personal proxy to
create an outgoing server connection. This is done even if your
connectivity mode is set to offline. This behavior is intentional, and
permits clever scripters to automate periodic dialups and forced server
flushes.

On Win95/98/NT, when running the proxy in a window you can press
Ctrl-Break at any time to perform the equivalent of a HUP+ALRM signal on
UNIX. To actually close the proxy, press Ctrl-C or close window.

On OS/2 you can press Ctrl-C to force a reload of the ini file and
create an outgoing server connection. Ctrl-Break is used to close
the proxy.

We spend our years as a tale that is told


  • Onno
  • Registratie: Juni 1999
  • Niet online
BTW, volgens de man-pages van kill, worden de volgende signalen ondersteunt:
[...]
Daar staat geen "HUP" bij. Maar het werkt wel...
Doe maar 's "kill -l", dan krijg je een lijstje met de signals:
code:
1
2
3
4
5
6
7
8
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL
 5) SIGTRAP      6) SIGIOT       7) SIGBUS       8) SIGFPE
 9) SIGKILL     10) SIGUSR1     11) SIGSEGV     12) SIGUSR2
13) SIGPIPE     14) SIGALRM     15) SIGTERM     17) SIGCHLD
18) SIGCONT     19) SIGSTOP     20) SIGTSTP     21) SIGTTIN
22) SIGTTOU     23) SIGURG      24) SIGXCPU     25) SIGXFSZ
26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGIO
30) SIGPWR      31) SIGSYS

  • GarBaGe
  • Registratie: December 1999
  • Laatst online: 14:56
Bedankt allemaal. De "kill -l" geeft idd al die signalen. Nu nog een mooi cron scriptje die automatisch iedere begin van de maand flusht, maar dat lukt me wel... :)

Ryzen9 5900X; 16GB DDR4-3200 ; RTX-4080S ; 7TB SSD


  • s3n
  • Registratie: Juli 2000
  • Laatst online: 11:52

s3n

On Win95/98/NT, when running the proxy in a window you can press
Ctrl-Break at any time to perform the equivalent of a HUP+ALRM signal on
UNIX. To actually close the proxy, press Ctrl-C or close window.
Ik draai dus een proxyserver op win2k.
Als ik nu een aanpassing maak in de ini.
En de bovenstaande combo intoets krijg ik hetvolgende.

Hij zegt netjes doing .ini reload now.
Maar :( hij laad de ini in zoals hij eruit zag bij het opstarten van de proxy. Hij voert de wijzigingen dus niet door :(

Iemand hier al ervaringen mee?

  • s3n
  • Registratie: Juli 2000
  • Laatst online: 11:52

s3n

up^^

Het lukt me nog steeds niet :(
Pagina: 1