File: actor-daemon.tesh

package info (click to toggle)
simgrid 3.25%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 23,308 kB
  • sloc: cpp: 100,922; ansic: 68,086; fortran: 6,061; xml: 5,176; f90: 5,123; java: 4,094; python: 2,623; perl: 1,843; sh: 1,241; makefile: 47; javascript: 7; sed: 6
file content (11 lines) | stat: -rw-r--r-- 624 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env tesh

p Testing the process daemonization feature

$ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${bindir:=.}/actor-daemon.py ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%P@%h)%e%m%n"
> [  0.000000] (worker@Boivin) Let's do some work (for 10 sec on Boivin).
> [  0.000000] (daemon@Tremblay) Hello from the infinite loop
> [  3.000000] (daemon@Tremblay) Hello from the infinite loop
> [  6.000000] (daemon@Tremblay) Hello from the infinite loop
> [  9.000000] (daemon@Tremblay) Hello from the infinite loop
> [ 10.000000] (worker@Boivin) I'm done now. I leave even if it makes the daemon die.