A2-ai / sorting-hat

1 stars 0 forks source link

example of sorting hat timer running #1

Open dpastoor opened 12 months ago

dpastoor commented 12 months ago
root@ubuntu-linux-22-04-02-desktop:/etc/systemd/system# systemctl daemon-reload
root@ubuntu-linux-22-04-02-desktop:/etc/systemd/system# systemctl enable sortinghat.timer 
Created symlink /etc/systemd/system/timers.target.wants/sortinghat.timer → /etc/systemd/system/sortinghat.timer.
root@ubuntu-linux-22-04-02-desktop:/etc/systemd/system# systemctl start sortinghat.timer
root@ubuntu-linux-22-04-02-desktop:/etc/systemd/system# systemctl status sortinghat
○ sortinghat.service - Run sorting-hat
     Loaded: loaded (/etc/systemd/system/sortinghat.service; disabled; vendor preset: enabled)
     Active: inactive (dead) since Fri 2023-11-10 11:17:57 EST; 4s ago
TriggeredBy: ● sortinghat.timer
    Process: 144617 ExecStart=/opt/sortinghat/sortinghat watch --dir=/home (code=exited, status=0/SUCCESS)
   Main PID: 144617 (code=exited, status=0/SUCCESS)
        CPU: 69ms

Nov 10 11:17:57 ubuntu-linux-22-04-02-desktop usermod[144635]: add 'user4013' to shadow group 'rstudio-connect'
Nov 10 11:17:57 ubuntu-linux-22-04-02-desktop usermod[144642]: add 'user4012' to group 'rstudio-connect'
Nov 10 11:17:57 ubuntu-linux-22-04-02-desktop usermod[144642]: add 'user4012' to shadow group 'rstudio-connect'
Nov 10 11:17:57 ubuntu-linux-22-04-02-desktop usermod[144649]: add 'user4011' to group 'rstudio-connect'
Nov 10 11:17:57 ubuntu-linux-22-04-02-desktop usermod[144649]: add 'user4011' to shadow group 'rstudio-connect'
Nov 10 11:17:57 ubuntu-linux-22-04-02-desktop usermod[144656]: add 'user4010' to group 'rstudio-connect'
Nov 10 11:17:57 ubuntu-linux-22-04-02-desktop usermod[144656]: add 'user4010' to shadow group 'rstudio-connect'
Nov 10 11:17:57 ubuntu-linux-22-04-02-desktop sortinghat[144617]: time=2023-11-10T11:17:57.393-05:00 level=INFO msg="ran user c>
Nov 10 11:17:57 ubuntu-linux-22-04-02-desktop systemd[1]: sortinghat.service: Deactivated successfully.
Nov 10 11:17:57 ubuntu-linux-22-04-02-desktop systemd[1]: Finished Run sorting-hat.
dpastoor commented 12 months ago

example showing what happens when adding an additional couple users - then we see they properly get picked up the next go round

Nov 10 11:21:13 ubuntu-linux-22-04-02-desktop systemd[1]: Starting Run sorting-hat...
Nov 10 11:21:13 ubuntu-linux-22-04-02-desktop sortinghat[145928]: time=2023-11-10T11:21:13.508-05:00 level=INFO msg="ran user check on rstudio-connect group membership" users_added=0 users_checked=11
Nov 10 11:21:13 ubuntu-linux-22-04-02-desktop systemd[1]: sortinghat.service: Deactivated successfully.
Nov 10 11:21:13 ubuntu-linux-22-04-02-desktop systemd[1]: Finished Run sorting-hat.
Nov 10 11:22:16 ubuntu-linux-22-04-02-desktop systemd[1]: Starting Run sorting-hat...
Nov 10 11:22:16 ubuntu-linux-22-04-02-desktop usermod[146523]: add 'user4016' to group 'rstudio-connect'
Nov 10 11:22:16 ubuntu-linux-22-04-02-desktop usermod[146523]: add 'user4016' to shadow group 'rstudio-connect'
Nov 10 11:22:16 ubuntu-linux-22-04-02-desktop usermod[146530]: add 'user4015' to group 'rstudio-connect'
Nov 10 11:22:16 ubuntu-linux-22-04-02-desktop usermod[146530]: add 'user4015' to shadow group 'rstudio-connect'
Nov 10 11:22:16 ubuntu-linux-22-04-02-desktop sortinghat[146514]: time=2023-11-10T11:22:16.338-05:00 level=INFO msg="ran user check on rstudio-connect group membership" users_added=2 users_checked=13
Nov 10 11:22:16 ubuntu-linux-22-04-02-desktop systemd[1]: sortinghat.service: Deactivated successfully.
Nov 10 11:22:16 ubuntu-linux-22-04-02-desktop systemd[1]: Finished Run sorting-hat.