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

Fix Windows service Restart/Stop #184

Merged
merged 3 commits into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/code-testing-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- run: echo "Job's status is ${{ job.status }}."

Compilation-test-macos:
runs-on: macos-12
runs-on: macos-latest
steps:
- name: Check out repository code, branch='${{ github.ref }}'
uses: actions/checkout@v2
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- run: echo "Job's status is ${{ job.status }}."

Unit-tests-macos:
runs-on: macos-12
runs-on: macos-latest
steps:
- name: Check out repository code, branch='${{ github.ref }}'
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/install-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:


Build-install-macos:
runs-on: macos-12
runs-on: macos-latest
steps:
- name: Check out repository code, branch='${{ github.ref }}'
uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pkg-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
- name: CentOS 7 - Package build
run: sudo docker run --rm okynos/fim-builder:centos7 ${{ github.ref_name }}

Pkg-build-macos11:
runs-on: macos-12
Pkg-build-macos:
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fim"
version = "0.5.1"
version = "0.5.2"
authors = ["José Fernández <´[email protected]´>"]
edition = "2021"

Expand Down
6 changes: 6 additions & 0 deletions pkg/deb/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
fim (0.5.2-1) xenial; urgency=medium

* More info: https://github.com/Achiefs/fim/releases/tag/v0.5.2

-- Jose Fernandez <[email protected]> Wed, 15 Jan 2025 20:54:00 +0000

fim (0.5.1-1) xenial; urgency=medium

* More info: https://github.com/Achiefs/fim/releases/tag/v0.5.1
Expand Down
3 changes: 3 additions & 0 deletions pkg/rpm/fim.spec
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ rm -fr %{buildroot}
# -----------------------------------------------------------------------------

%changelog
* Wed Jan 15 2025 support <[email protected]> - 0.5.2
- More info: https://github.com/Achiefs/fim/releases/tag/v0.5.2

* Thu Oct 10 2024 support <[email protected]> - 0.5.1
- More info: https://github.com/Achiefs/fim/releases/tag/v0.5.1

Expand Down
2 changes: 1 addition & 1 deletion src/appconfig.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (C) 2021, Achiefs.

// Global constants definitions
pub const VERSION: &str = "0.5.1";
pub const VERSION: &str = "0.5.2";
pub const NETWORK_MODE: &str = "NETWORK";
pub const FILE_MODE: &str = "FILE";
pub const BOTH_MODE: &str = "BOTH";
Expand Down
4 changes: 2 additions & 2 deletions src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ pub async fn monitor(


// Main loop, receive any produced event and write it into the events log.
loop {
'processor: loop {
for message in &rx {
match message {
Ok(event) => {
Expand All @@ -198,7 +198,7 @@ pub async fn monitor(
};
if plain_path == "DISCONNECT" {
info!("Received exit signal, exiting...");
break;
break 'processor;
}

let event_path = Path::new(plain_path);
Expand Down
Loading