Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example of sorting hat timer running #1

Open
dpastoor opened this issue Nov 10, 2023 · 1 comment
Open

example of sorting hat timer running #1

dpastoor opened this issue Nov 10, 2023 · 1 comment

Comments

@dpastoor
Copy link
Member

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
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant